Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.
/ s3fs-docker Public archive

A docker container which builds S3FS and mounts an S3 bucket during run, suitable for direct use or inheritance.

Notifications You must be signed in to change notification settings

deweysasser/s3fs-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED

This project is no longer maintained. If someone would like to adopt it I'll be happy to transfer it.

S3FS-docker

A docker image with S3FS built and ready to use

Using

While you can use this image directly, it's probably more useful to extend this container into your own. You can use '/root/run' as a wrapper which mounts S3, runs a command, and unmounts.

Environment Variables

This image will mount bucket $AWS_BUCKET on /mnt/s3 using credentials $AWSACCESSKEYID and $AWSSECRETACCESSKEY, then run the command passed in to docker.

Example

Show what is in an S3 bucket

 docker build -t withs3 .
 docker run --privileged=true -e AWS_BUCKET=mybucket -e AWSACCESSKEYID=somekey -e AWSSECRETACCESSKEY=somesecret withs3 ls /mnt/s3

Notes on Privileged

Allegedly, you should only need to run with '--cap-add SYS_ADMIN --device /dev/fuse'. However, that hasn't worked in my testing.

About

A docker container which builds S3FS and mounts an S3 bucket during run, suitable for direct use or inheritance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published