How to mount object storage container as file system (Linux)?

If you want to create new Object Storage container you may check following guide:
https://creodias.cloudferro.com/knowledgebase.php?action=displayarticle&id=138

To mount your Object Storage container 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

$ 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


To obtain s3 credentials (Access Key and Secret Key), that are generated on our part, please contact us via email or create Support ticket.

 

After creating the credentials file you may mount your container:

$ sudo $GOPATH/bin/goofys --region RegionOne --profile s3 --endpoint https://creodias.eu:8080/ kontener /mnt/new

In example above, kontener is the name of the container, and /mnt/new is an example mount point.