Update to aria2 1.32 and split config and download volume
This commit is contained in:
parent
2d2f537748
commit
fd867ae2a8
|
@ -1,19 +1,18 @@
|
|||
FROM resin/rpi-raspbian
|
||||
|
||||
# less priviledge user, the id should map the user the downloaded files belongs to
|
||||
RUN groupadd -r aria && useradd -r -g aria aria -u 1000
|
||||
RUN groupadd -r aria && useradd -m -r -g aria aria -u 1000
|
||||
|
||||
# webui + aria2
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y 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.31.0" \
|
||||
&& ARIA2_VERSION="1.32.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 \
|
||||
&& autoreconf -i && ./configure && make \
|
||||
&& mv src/aria2c /usr/bin/ \
|
||||
&& cd ../.. \
|
||||
&& rm -rf aria_build \
|
||||
|
@ -30,7 +29,7 @@ RUN GITHUB_REPO="https://github.com/tianon/gosu" \
|
|||
&& chmod +x /usr/local/bin/gosu
|
||||
|
||||
# goland install (compile source code for ARM since no version are currently available)
|
||||
RUN curl -L "https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz" > go.tar.gz \
|
||||
RUN curl -L "https://storage.googleapis.com/golang/go1.9.1.linux-armv6l.tar.gz" > go.tar.gz \
|
||||
&& tar -xzf go.tar.gz -C /usr/local \
|
||||
&& export GOROOT="/usr/local/go" && export GOPATH=`pwd` \
|
||||
&& $GOROOT/bin/go get github.com/mattn/goreman && $GOROOT/bin/go build -o /usr/local/bin/goreman github.com/mattn/goreman \
|
||||
|
@ -39,10 +38,12 @@ RUN curl -L "https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz" >
|
|||
&& unset GOROOT && unset GOPATH
|
||||
|
||||
# goreman setup
|
||||
RUN echo "web: gosu aria /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu aria /usr/bin/aria2c --conf-path=/data/.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
|
||||
VOLUME /data
|
||||
VOLUME /data/downloads
|
||||
# aria2 conf directory
|
||||
VOLUME /home/aria/.aria2
|
||||
|
||||
# aria2 RPC port, map as-is or reconfigure webui
|
||||
EXPOSE 6800/tcp
|
||||
|
|
Loading…
Reference in New Issue
Block a user