From 7a9f1665c6a485f69a023dac214c2b46ee64d25a Mon Sep 17 00:00:00 2001 From: BJ Fulton Date: Fri, 4 Oct 2019 08:07:47 -0700 Subject: [PATCH 1/8] fix permissions when updating --- run | 1 + 1 file changed, 1 insertion(+) diff --git a/run b/run index 2f4c167..470e216 100755 --- a/run +++ b/run @@ -64,6 +64,7 @@ if [[ -z "$DBOX_SKIP_UPDATE" ]]; then fi fi +chmod -R a+rx /opt/dropbox/ echo "Starting dropboxd ($(cat /opt/dropbox/VERSION))..." umask 002 exec su dropbox -s /bin/bash -c /opt/dropbox/dropboxd From 24236698e9dcf9cadf744c39767350b94c26b21d Mon Sep 17 00:00:00 2001 From: BJ Fulton Date: Fri, 4 Oct 2019 08:18:55 -0700 Subject: [PATCH 2/8] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1c12954..02c25d1 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ This repository provides the [janeczku/dropbox](https://registry.hub.docker.com/ ## Usage examples +### Optional first step (shouldn't be neccesary unless you need to make changes to the `Dockerfile` or the `run` script). + + docker build . --tag janeczku/dropbox + ### Quickstart docker run -d --restart=always --name=dropbox janeczku/dropbox From 357694aebfddec6ca3ab8ad15d8070f578de21fd Mon Sep 17 00:00:00 2001 From: BJ Fulton Date: Fri, 4 Oct 2019 08:19:19 -0700 Subject: [PATCH 3/8] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 02c25d1..998dec2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ This repository provides the [janeczku/dropbox](https://registry.hub.docker.com/ ## Usage examples -### Optional first step (shouldn't be neccesary unless you need to make changes to the `Dockerfile` or the `run` script). +### Optional first step +(shouldn't be neccesary unless you need to make changes to the `Dockerfile` or the `run` script). docker build . --tag janeczku/dropbox From ed18fa147715cbe8065c0c622bbce932d1cc61bd Mon Sep 17 00:00:00 2001 From: BJ Fulton Date: Fri, 4 Oct 2019 08:25:12 -0700 Subject: [PATCH 4/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 998dec2..be551bc 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ This repository provides the [janeczku/dropbox](https://registry.hub.docker.com/ ### Optional first step (shouldn't be neccesary unless you need to make changes to the `Dockerfile` or the `run` script). + # from the docker-dropbox directory docker build . --tag janeczku/dropbox ### Quickstart From 1c77f2f4321c0cb198d73e6d75739e2859731ccb Mon Sep 17 00:00:00 2001 From: BJ Fulton Date: Tue, 8 Oct 2019 14:01:42 -0700 Subject: [PATCH 5/8] narrowing permissions change --- run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run b/run index 470e216..6e69a5f 100755 --- a/run +++ b/run @@ -64,7 +64,7 @@ if [[ -z "$DBOX_SKIP_UPDATE" ]]; then fi fi -chmod -R a+rx /opt/dropbox/ +chmod a+rx /opt/dropbox/dropbox-lnx*/*.so echo "Starting dropboxd ($(cat /opt/dropbox/VERSION))..." umask 002 exec su dropbox -s /bin/bash -c /opt/dropbox/dropboxd From 02dfe594e4814346a37a0ce80fa855b494fd5d40 Mon Sep 17 00:00:00 2001 From: Adam K Dean Date: Fri, 15 Nov 2019 18:11:53 +0000 Subject: [PATCH 6/8] upgrade to stretch + fix libatomic1 issue --- Dockerfile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 17db4fc..f177eba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,18 @@ -FROM debian:jessie -MAINTAINER Jan Broer +FROM debian:stretch +MAINTAINER Adam K Dean ENV DEBIAN_FRONTEND noninteractive -# Following 'How do I add or remove Dropbox from my Linux repository?' - https://www.dropbox.com/en/help/246 -RUN echo 'deb http://linux.dropbox.com/debian jessie main' > /etc/apt/sources.list.d/dropbox.list \ - && apt-key adv --keyserver pgp.mit.edu --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E \ +# From 'How do I add or remove Dropbox from my Linux repository?' - +# https://www.dropbox.com/en/help/246 + +RUN apt-get -qqy update \ + && apt-get -qqy upgrade \ + && apt-get -qqy install libatomic1 gnupg ca-certificates curl python-gpgme python3-gpg \ + && echo 'deb http://linux.dropbox.com/debian stretch main' > /etc/apt/sources.list.d/dropbox.list \ + && apt-key adv --keyserver ipv4.pool.sks-keyservers.net --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E \ && apt-get -qqy update \ # Note 'ca-certificates' dependency is required for 'dropbox start -i' to succeed - && apt-get -qqy install ca-certificates curl python-gpgme dropbox \ + && apt-get -qqy install dropbox \ # Perform image clean up. && apt-get -qqy autoclean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ From 673c1b82c5931cafbbf19060758e7e8719af7ffa Mon Sep 17 00:00:00 2001 From: Adam K Dean Date: Fri, 15 Nov 2019 18:12:00 +0000 Subject: [PATCH 7/8] update README --- README.md | 75 ++++--------------------------------------------------- 1 file changed, 5 insertions(+), 70 deletions(-) diff --git a/README.md b/README.md index 1c12954..2dfa87f 100644 --- a/README.md +++ b/README.md @@ -1,77 +1,12 @@ # Dropbox in Docker -[![Docker Pulls](https://img.shields.io/docker/pulls/janeczku/dropbox.svg?maxAge=2592000)][hub] -[![License](https://img.shields.io/github/license/janeczku/docker-alpine-kubernetes.svg?maxAge=2592000)]() - -[hub]: https://hub.docker.com/r/janeczku/dropbox/ +[![Docker Pulls](https://img.shields.io/docker/pulls/adamkdean/dropbox.svg?maxAge=2592000)][hub] +[hub]: https://hub.docker.com/r/adamkdean/dropbox/ Run Dropbox inside Docker. Fully working with local host folder mount or inter-container linking (via `--volumes-from`). -This repository provides the [janeczku/dropbox](https://registry.hub.docker.com/u/janeczku/dropbox/) image. - -## Usage examples - -### Quickstart - - docker run -d --restart=always --name=dropbox janeczku/dropbox - -### Dropbox data mounted to local folder on the host - - docker run -d --restart=always --name=dropbox \ - -v /path/to/localfolder:/dbox/Dropbox \ - janeczku/dropbox - -### Run dropbox with custom user/group id -This fixes file permission errrors that might occur when mounting the Dropbox file folder (`/dbox/Dropbox`) from the host or a Docker container volume. You need to set `DBOX_UID`/`DBOX_GID` to the user id and group id of whoever owns these files on the host or in the other container. - - docker run -d --restart=always --name=dropbox \ - -e DBOX_UID=110 \ - -e DBOX_GID=200 \ - janeczku/dropbox - -### Enable LAN Sync - - docker run -d --restart=always --name=dropbox \ - --net="host" \ - janeczku/dropbox - -## Linking to Dropbox account after first start - -Check the logs of the container to get URL to authenticate with your Dropbox account. - - docker logs dropbox - -Copy and paste the URL in a browser and login to your Dropbox account to associate. - - docker logs dropbox - -You should see something like this: - -> "This computer is now linked to Dropbox. Welcome xxxx" - -## Manage exclusions and check sync status - - docker exec -t -i dropbox dropbox help - -## ENV variables - -**DBOX_UID** -Default: `1000` -Run Dropbox with a custom user id (matching the owner of the mounted files) - -**DBOX_GID** -Default: `1000` -Run Dropbox with a custom group id (matching the group of the mounted files) - -**$DBOX_SKIP_UPDATE** -Default: `False` -Set this to `True` to skip updating to the latest Dropbox version on container start - - -## Exposed volumes +This repository provides the [adamkdean/dropbox](https://registry.hub.docker.com/u/adamkdean/dropbox/) image. -`/dbox/Dropbox` -Dropbox files +### Previously -`/dbox/.dropbox` -Dropbox account configuration +This was previously `janeczku/dropbox` but that repo has become stale. From c39ca18089b2c2f3d7997c864d57fcc9d3b976da Mon Sep 17 00:00:00 2001 From: Adam K Dean Date: Fri, 15 Nov 2019 18:13:51 +0000 Subject: [PATCH 8/8] update README again --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2dfa87f..acb1ebe 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,9 @@ # Dropbox in Docker -[![Docker Pulls](https://img.shields.io/docker/pulls/adamkdean/dropbox.svg?maxAge=2592000)][hub] -[hub]: https://hub.docker.com/r/adamkdean/dropbox/ - -Run Dropbox inside Docker. Fully working with local host folder mount or inter-container linking (via `--volumes-from`). +![Docker Pulls](https://img.shields.io/docker/pulls/adamkdean/dropbox.svg?maxAge=2592000) This repository provides the [adamkdean/dropbox](https://registry.hub.docker.com/u/adamkdean/dropbox/) image. -### Previously - This was previously `janeczku/dropbox` but that repo has become stale. + +See original repo for more docs.