How to mount EO DATA as a filesystem using goofys (Linux)?

To mount EO DATA resources as file system do following steps:

For Ubuntu:

$ sudo add-apt-repository ppa:gophers/archive && sudo apt-get update && sudo apt-get install golang-1.10-go

$ echo "export PATH=$PATH:/usr/lib/go-1.10/bin" >> ~/.profile

$ source ~/.profile

$ mkdir work

$ export GOPATH=$HOME/work && go get github.com/kahing/goofys && go install github.com/kahing/goofys


For Centos:

$ sudo rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO

$ curl -s https://mirror.go-repo.io/centos/go-repo.repo | tee /etc/yum.repos.d/go-repo.repo

$ sudo yum install golang


Next, create file ~/.aws/credentials with content:

[s3]
aws_access_key_id=XXXX
aws_secret_access_key=XXXX


Fill in aws_access_key_id and aws_secret_access_key with random data. (URL http://data.cloudferro.com does not require an authorization)

 

After creating the credentials file you may mount EO DATA:

 

$ $GOPATH/bin/goofys --region RegionOne --profile s3 --endpoint https://data.cloudferro.com \
DIAS ~/MOUNT-POINT
Hint:
Store ec2 credentials in root home directory if you use goofys with sudo.

DIAS is the name of our bucket that contains of EO DATA resources.
According to the example above, you have to provide MOUNT-POINT at the end of the command.

Example configuration in /etc/fstab (additionally):

/home/eouser/work/bin/goofys#/container /mountpoint fuse _netdev,allow_other,--dir-mode=0777,--file-mode=0666,--region=RegionOne,--profile=s3,--endpoint=https://cf2.cloudferro.com:8080/ 0 0