Last active
January 19, 2017 03:35
-
-
Save hackintoshrao/a438ae85b83fa76932bb5f3804f14a47 to your computer and use it in GitHub Desktop.
How a Dockerized application make use of Minfs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install fuse on the host. | |
| $ sudo apt-get install fuse | |
| # On host - Fetch and builds Minfs. | |
| $ go get github.com/minio/minfs | |
| # On host - Set Access and Secret Key of the Minio server. | |
| $ export MINFS_ACCESS_KEY=Q3AM3UQ867SPQQA43P2F | |
| $ export MINFS_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG | |
| # On host - Run the Minfs binary pointing to the remote Minio servers bucket. | |
| $ GOPATH/bin/minfs -o rw https://play.minio.io:9000/rao /home/minio/karthic/minfs | |
| # Any Dockerized application can use Docker file system volume driver (using the -v option) to use Minfs. | |
| # There is no need for addiotional volume driver. | |
| $ sudo docker run -i -t -v /home/minio/karthic/minfs:/minfs ubuntu:12.04 /bin/bash | |
| # Now the applications inside the docker container can just write objects to /minfs. | |
| $ cp /bin/kill /minfs | |
| # you can now find the copied file in the remote Minio bucket https://play.minio.io:9000/rao. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment