Skip to content

Mount cloud.mail.ru as local path without GUI on Linux

Notifications You must be signed in to change notification settings

parotikov/cloud-mail-ru-docker

 
 

Repository files navigation

Cloud Mail.ru in a Docker

Docker Build Status Docker Pulls

With this image you can mount cloud.mail.ru as a FUSE path. MARC-FS is used under the hood. Without GUI login, VNC and so on.

Configure CI to upload builds or write backup scripts with cloud.mail.ru storage.

Ho To Use

  1. Set MAILRU_LOGIN, MAILRU_PASSWORD credentials as env variables
  2. Start container with local path mounted as volume in a privileged mode
  3. Copy files in both directions

Configuration

ENV Default Description
MAILRU_LOGIN login, e.g. 'my.email@mail.ru'
MAILRU_PASSWORD password
MAILRU_AUTOMOUNT true Mount clound on container start

Example

$ echo "Hello Mail.ru" > hello.txt
$ docker run -v "$PWD":/local_drive -e MAILRU_LOGIN=my.email@mail.ru -e MAILRU_PASSWORD=secret123 --rm --privileged parotikov/cloud-mail-ru-docker:1.1 cp /local_drive/hello.txt /tmp/mailru/hello.txt

Build

docker build --rm -t parotikov/cloud-mail-ru-docker:1.1 .

Usage

/bin/bash /root/copy_to_mailru_cloud.sh /home/backup file.tar cloud_dir

Why?

There some other projects doing pretty the same:

So why do we need another one? The key feature of cloud-mail-ru-docker is ability to avoid GUI authentication at all. It is important when using CI to deliver builds, e.g..

About

Mount cloud.mail.ru as local path without GUI on Linux

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 82.0%
  • Shell 18.0%