GithubHelp home page GithubHelp logo

genzouw / goofys Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 2 KB

This is a Docker image recipe to easily use "goofys" to mount AWS S3 storage.

Home Page: https://genzouw.com/entry/2019/03/07/080500

Dockerfile 40.84% Shell 59.16%
docker docker-compose aws s3 goofys

goofys's Introduction

goofys on Docker

Docker Cloud build status Docker Pulls Docker Cloud Automated build

dockeri.co

Description

This is a Docker image recipe to easily use "goofys" to mount AWS S3 storage.

I also publish pre-built images on Docker Hub.

Please contact me anytime if you have a problem or request! My information is posted at the bottom of this document.

Requirements

  • Docker
  • AWS
    • S3 Butcket
    • IAM (ACCESS_KEY and SECRET_ACCESS_KEY)

Installation

If you can use the docker command, no installation is required.

Usage

If the mount directory is not specified,

Using the "BUCKET" environment variable, mount on the "/mnt/${BUCKET}" directory.

$ docker \
  run -d --privileged \
  -e AWS_ACCESS_KEY_ID=******************** \
  -e AWS_SECRET_ACCESS_KEY=**************************************** \
  -e BUCKET=************ \
  genzouw/goofys

If the mount directory is specified,

Using the "MOUNT_DIR" environment variable, mount on the "${MOUNT_DIR}" directory.

$ docker \
  run -d --privileged \
  -e AWS_ACCESS_KEY_ID=******************** \
  -e AWS_SECRET_ACCESS_KEY=**************************************** \
  -e BUCKET=************ \
  -e MOUNT_DIR=/mnt/foo \
  genzouw/goofys

Customize

You can set any options to the goofys command.

# Set region
# Use caching
# Can upload, but can't update
$ docker \
  run -d --privileged \
  -e AWS_ACCESS_KEY_ID=******************** \
  -e AWS_SECRET_ACCESS_KEY=**************************************** \
  -e BUCKET=************ \
  -e MOUNT_DIR=/mnt/foo \
  genzouw/goofys \
    --region eu-west-1 \
    --stat-cache-ttl 1m0s \
    --type-cache-ttl 1m0s \
    --dir-mode 0700 \
    --file-mode 0500

License

This software is released under the MIT License, see LICENSE.

Help

Got a question ?

File a Github issue, send an email to [email protected] or tweet to @genzouw on Twitter.

Author Information

genzouw

goofys's People

Contributors

genzouw avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.