Repository URL to install this package:
Version:
4.1.94.1.dev14 ▾
|
s3fuse.egg-info |
etc |
s3fuse |
MANIFEST.in |
setup.py |
setup.cfg |
PKG-INFO |
README.md |
requirements.txt |
This is a python pip module that creates a virtual fuse layer so that we can easily mount data to an S3 bucket. Since we will use this in the container environment, this project is running inside of Docker container.
Allow SSH from your local machine to your Gihub private repositories
Create valut.conf file with the information below
[DEFAULT]
vault_data_directory =
vault_data_directory_old =
vault_storage_das_device = none
vault_storage_type = s3
vault_s3_auth_version = DEFAULT
vault_s3_access_key_id =
vault_s3_secret_access_key =
vault_s3_region_name =
vault_s3_bucket =
vault_s3_endpoint_url =
vault_s3_signature_version = default
vault_s3_ssl = False
vault_enable_threadpool = True
vault_s3_support_empty_dir = False
[s3fuse_sys_admin]
helper_command = sudo PATH_OF_PRIVSEP_HELPER_BINARY
Add following entry in nova sudoers file for privsep-helper nova ALL = (root) NOPASSWD: PATH_OF_PRIVSEP_HELPER_BINARY *
pip install git+ssh://git@github.com/trilioData/s3-fuse-plugin.git
Run it.
import s3fuse # This is the name of the module created by our pip install command # mount start s3fuse.mount() # umount and clean all the files and folder generated from the mount s3fuse.umount() """ Fixed Required There is a bug that build one additional mount points. For now, this function will remove the files and folders from this mountpoint. """ s3fuse.clean()
The test codes have not hit 100 percent coverage. Even though the parts that have not covered yet are trivial, they should be covered eventually to avoid the edge cases.
Except for the two mount points we assign, the current working directory is automatically set as an additional mount point.