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.
This commit is contained in:
Nick Andrew 2014-11-16 23:56:50 +11:00
parent 082b56789e
commit 25bbb48dcf
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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/

View file

@ -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