Fix Dockerfile and update readme

This commit is contained in:
anthonyraymond 2017-10-12 23:38:46 +02:00
parent fd867ae2a8
commit ef8ded9ffd
2 changed files with 12 additions and 7 deletions

View File

@ -38,7 +38,7 @@ RUN curl -L "https://storage.googleapis.com/golang/go1.9.1.linux-armv6l.tar.gz"
&& unset GOROOT && unset GOPATH && unset GOROOT && unset GOPATH
# goreman setup # goreman setup
RUN echo "web: gosu aria /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu aria /usr/bin/aria2c --conf-path=/home/aria/.aria2/aria2.conf" /data/downloads/*.torrent > Procfile RUN echo "web: gosu aria /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu aria /usr/bin/aria2c --conf-path=/home/aria/.aria2/aria2.conf /data/downloads/*.torrent" > Procfile
# aria2 downloads directory # aria2 downloads directory
VOLUME /data/downloads VOLUME /data/downloads

View File

@ -68,17 +68,22 @@ Build it (may take several hours due to the aria2 compilation process. Don't pan
docker build -f Dockerfile.arm -t yourname/webui-aria2 . docker build -f Dockerfile.arm -t yourname/webui-aria2 .
``` ```
Prepare the host volume: Prepare the host volume:
This image required few file to be mounted in the container's `/data` folder. This image required few file to be mounted in the container.
``` ```
.aria2/session.txt (empty file) /home/aria/aria2/session.txt (empty file)
.aria2/aria2.log (empty file) /home/aria/aria2/aria2.log (empty file)
.aria2/aria2.conf (aria2 configuration file, not webui-aria2 conf) must contains at least `enable-rpc=true` and `rpc-listen-all=true` /home/aria/aria2/aria2.conf (aria2 configuration file, not webui-aria2 conf) must contains at least `enable-rpc=true` and `rpc-listen-all=true`
./downloads/ (where the downloaded files goes) /data/downloads/ (where the downloaded files goes)
``` ```
Run it Run it
``` ```
docker run --restart=always -d -v /home/<USER>/data/aria2:/data -p 6800:6800 -p 9100:8080 --name="webui-aria2" yourname/webui-aria2 docker run --restart=always \
-v /home/<USER>/data/aria2/downloads:/data/downloads \
-v /home/<USER>/data/aria2/.aria2:/home/aria/.aria2 \
-p 6800:6800 -p 9100:8080 \
--name="webui-aria2" \
-d yourname/webui-aria2
``` ```
Support Support