Sign inSign up

j0rsa/min-ubuntu-dropbox

By j0rsa

•Updated almost 5 years ago

Image
0

1.2K

j0rsa/min-ubuntu-dropbox repository overview

⁠j0rsa/min-ubuntu-dropbox

⁠DESCRIPTION:

Forked from Ralph Slooten's Alpine Dropbox⁠ and ported over to a Minimal Ubuntu base after the latest Dropbox for Linux⁠ headless clients started requiring additional dependencies that would likely require further hackery of the original glibc-enabled⁠ Alpine base.

⁠EXAMPLE USAGE:

docker run -d \
    --name dropbox \
    --net=host \
    -e UID=1000 \
    -e GID=1000 \
    -v <path to Dropbox folder>:/dbox/Dropbox \
    -v <path to config folder>:/dbox/.dropbox \
    --restart=unless-stopped \
    j0rsa/min-ubuntu-dropbox

⁠DOCKER PARAMETERS:

Default ParametersFunction
-e UID=1000UID of Dropbox (current) user.
-e GID=1000GID of Dropbox (current) user.
-v /path/to/dropbox/folder:/dbox/DropboxPath to Dropbox folder on host machine.
-v /path/to/config/folder:/dbox/.dropboxPath to persistent Dropbox settings folder on host machine.

UID and GID could be an existing user, but make sure that paths to Dropbox&.dropbox lead to one's home directory

⁠INITIAL SETUP

At first run, the container will download the latest version of the Dropbox Linux client.

Run docker logs dropbox -f after starting the container and wait until you see messages similar to:

This computer isn't linked to any Dropbox account...
Please visit https://www.dropbox.com/cli_link_nonce?nonce=(xxxxx-random-nonce-value-xxxxx) to link this device.

Open the link in a browser to authorise the client and link the container to your Dropbox.

You should then see in the docker log:

This computer is now linked to Dropbox. Welcome *your-name*

There is no updater script, so to update the Dropbox client; remove the container and add it again. The persistent config folder will ensure you don't need to relink your account again.

⁠NOTES:

  • Dropbox commands should be run as the dbox user:

    docker exec -it -u dbox dropbox dropbox-cli help
    

    Any custom configuration that is supported by the dropbox-cli⁠ can be modified this way.

  • The current Dropbox status can be seen in the docker log. It refreshes every five seconds and only outputs data when there are any changes.

    docker logs dropbox -f
    
  • Check whether the image still could be used

    docker run -it --rm --name dropbox -v $HOME/Documents/data:/dbox/Dropbox -v $HOME/Documents/config:/dbox/.dropbox j0rsa/min-ubuntu-dropbox
    

⁠Ignore file/dir

docker exec -it dropbox attr -s com.dropbox.ignored -V 1 <path/to/file>

Tag summary

Content type

Image

Digest

Size

80.3 MB

Last updated

almost 5 years ago

docker pull j0rsa/min-ubuntu-dropbox