Merge pull request #294 from anthonyraymond/master

Compile latest aria2 version in Dockerfile.raspberry
This commit is contained in:
hamza zia 2017-01-04 13:09:59 +05:00 committed by GitHub
commit c5a11d7cde
2 changed files with 16 additions and 3 deletions

View File

@ -60,7 +60,7 @@ sudo docker run -v /Downloads:/data -p 6800:6800 -p 9100:8080 --name="webui-aria
This image contains both aria2 and webui-aria2. This image contains both aria2 and webui-aria2.
Build it Build it (may take several hours due to the aria2 compilation process. Don't panic and grap a coffee)
``` ```
docker build -f rpi-Dockerfile -t yourname/webui-aria2 . docker build -f rpi-Dockerfile -t yourname/webui-aria2 .
``` ```
@ -75,7 +75,7 @@ This image required few file to be mounted in the container's `/data` folder.
Run it Run it
``` ```
docker run -d -v /home/<USER>/data/aria2:/data -p 6800:6800 -p 9100:8080 --name="webui-aria2" yourname/webui-aria2 docker run --restart=always -d -v /home/<USER>/data/aria2:/data -p 6800:6800 -p 9100:8080 --name="webui-aria2" yourname/webui-aria2
``` ```
Support Support

View File

@ -5,7 +5,20 @@ RUN groupadd -r aria && useradd -r -g aria aria -u 1000
# webui + aria2 # webui + aria2
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y aria2 busybox curl git \ && apt-get install -y busybox curl \
git \
make g++ libssl-dev nettle-dev libgmp-dev libssh2-1-dev libc-ares-dev libxml2-dev zlib1g-dev libsqlite3-dev pkg-config libxml2-dev libcppunit-dev autoconf automake autotools-dev autopoint libtool \
&& ARIA2_VERSION="1.30.0" \
&& mkdir aria_build && cd aria_build \
&& curl -L https://github.com/aria2/aria2/releases/download/release-"$ARIA2_VERSION"/aria2-"$ARIA2_VERSION".tar.gz > aria2.tar.gz \
&& tar -xzf aria2.tar.gz \
&& cd aria2-$ARIA2_VERSION \
&& autoreconf -i && ./configure && make \
&& mv src/aria2c /usr/bin/ \
&& cd ../.. \
&& rm -rf aria_build \
&& apt-get remove --purge --auto-remove make g++ libssl-dev nettle-dev libgmp-dev libssh2-1-dev libc-ares-dev libxml2-dev zlib1g-dev libsqlite3-dev pkg-config libxml2-dev libcppunit-dev autoconf automake autotools-dev autopoint libtool \
&& apt-get install -y libxml2 libsqlite3-0 libc-ares2 zlib1g \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ADD . /webui-aria2 ADD . /webui-aria2