Sign inSign up

hiveoss/s3fs

By hiveoss

Updated almost 11 years ago

Ubuntu Trusty with s3fs-fuse and supervisor. Basic base image to mount S3 bucket.

Image
5

4.7K

hiveoss/s3fs repository overview

s3fs

Ubuntu Trusty with s3fs-fuse and supervisor as base image for other app containers.

Quick Start

docker run --privileged --cap-add SYS_ADMIN --device /dev/fuse -d -e "BUCKETNAME=$BUCKETNAME" -e "AWSACCESSKEYID=$AWSACCESSKEYID" -e "AWSSECRETACCESSKEY=$AWSSECRETACCESSKEY" hiveoss/s3fs

Configurations

Environment variables

The environment variables are used to indicate the bucket to mount and to provide credentials to access the bucket. $BUCKETNAME - the AWS bucket name $AWSACCESSKEYID - the AWS key id $AWSSECRETACCESSKEY - the AWS secret token

s3fs-fuse

You can overwrite scripts/runS3fs.sh to change the parameters for the s3fs.

mkdir -p /home/shared/s3 && 
mkdir -p /tmp && 
s3fs $BUCKETNAME /home/shared/s3 -o use_cache=/tmp -o allow_other -o umask=0002 -o use_rrs -f
supervisor

You can overwrite config/supervisord.conf to change the parameters for the supervisord. But usually you do not need to unless you need to start additional processes. Noted that daemon is off by default for supervisor.

Default S3 folder

The default s3 bucket is mounted at /home/shared/s3.

Github repo

Tag summary

Content type

Image

Digest

sha256:629e3d9f0

Size

167.6 MB

Last updated

almost 11 years ago

docker pull hiveoss/s3fs