Skip to content

Commit f3cb4ca

Browse files
committed
Try to fix /tmp problem
1 parent 5c2c45b commit f3cb4ca

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
os: linux
22

33
services:
4-
- docker
4+
- docker
55

66
script:
7-
- docker build --build-arg BUILD_DATE="$(date --rfc-3339=seconds | sed 's/ /T/')" --build-arg VCS_REF="$(echo $TRAVIS_COMMIT | cut -c -7)" --tag otherguy/dropbox:latest .
7+
- docker build --build-arg VERSION="${TRAVIS_BRANCH}" --build-arg BUILD_DATE="$(date --rfc-3339=seconds | sed 's/ /T/')" --build-arg VCS_REF="$(echo $TRAVIS_COMMIT | cut -c -7)" --tag otherguy/dropbox:latest .
88

99
before_deploy:
10-
- echo "${DOCKERHUB_TOKEN}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin && echo "${GITHUB_TOKEN}" | docker login docker.pkg.github.com -u "${GITHUB_USERNAME}" --password-stdin
10+
- echo "${DOCKERHUB_TOKEN}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin && echo "${GITHUB_TOKEN}" | docker login docker.pkg.github.com -u "${GITHUB_USERNAME}" --password-stdin
1111

1212
deploy:
1313
- provider: script

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ ARG BUILD_DATE=""
6565
# http://label-schema.org/rc1/
6666
LABEL org.label-schema.schema-version "1.0"
6767
LABEL org.label-schema.name "Dropbox"
68+
LABEL org.label-schema.version "${VERSION}"
6869
LABEL org.label-schema.build-date "${BUILD_DATE}"
6970
LABEL org.label-schema.description "Standalone Dropbox client"
7071
LABEL org.label-schema.vcs-url "https://github.com/otherguy/docker-dropbox"

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ sleep 5
105105
# Dropbox likes to restart itself. In that case, the container will exit!
106106
while kill -0 ${DROPBOX_PID} 2> /dev/null; do
107107
[ -d "/proc/${DROPBOX_PID}" ] && [ -f "/opt/dropbox/.dropbox/info.json" ] && gosu dropbox dropbox status
108-
/usr/bin/find /tmp -maxdepth 1 -type d -mtime +1 -exec rm -rf {} \;
108+
/usr/bin/find /tmp/ -maxdepth 1 -type d -mtime +1 ! -path /tmp/ -exec rm -rf {} \;
109109
/bin/sleep ${POLLING_INTERVAL}
110110
done

0 commit comments

Comments
 (0)