From 25bbb48dcf84aea02e19e691634aa5a577b2e64c Mon Sep 17 00:00:00 2001 From: Nick Andrew Date: Sun, 16 Nov 2014 23:56:50 +1100 Subject: [PATCH] Move output dir to /repository/debian & expose it We need the output data to be persistent and/or backed-up, and the right way to do this is to expose it to other containers which use the --volumes-from option. The data volume is called /repository rather than /docker to avoid possible conflict with /docker in other using containers. --- Dockerfile | 2 +- configs/nginx-default.conf | 2 +- scripts/reprepro-import.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6ac0223..c400873 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ ENV DEBIAN_FRONTEND newt ADD scripts/start.sh /usr/local/sbin/start RUN chmod 755 /usr/local/sbin/start -VOLUME ["/docker/keys", "/docker/incoming"] +VOLUME ["/docker/keys", "/docker/incoming", "/repository"] EXPOSE 80 EXPOSE 22 diff --git a/configs/nginx-default.conf b/configs/nginx-default.conf index efff12e..05deecd 100644 --- a/configs/nginx-default.conf +++ b/configs/nginx-default.conf @@ -2,7 +2,7 @@ server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; - root /var/www; + root /repository/debian; index index.html index.htm; # Make site accessible from http://localhost/ diff --git a/scripts/reprepro-import.sh b/scripts/reprepro-import.sh index 77db325..9486525 100644 --- a/scripts/reprepro-import.sh +++ b/scripts/reprepro-import.sh @@ -2,7 +2,7 @@ BASEDIR=/var/lib/reprepro INCOMING=/docker/incoming -OUTDIR=/var/www/debian +OUTDIR=/repository/debian # # Make sure we're in the apt/ directory