add aria2-arm

This commit is contained in:
kev 2021-09-07 11:45:52 +08:00
parent 1dedeb31ba
commit 5836e30a3f
5 changed files with 75 additions and 0 deletions

24
aria2/arm/Dockerfile Normal file
View File

@ -0,0 +1,24 @@
#
# Dockerfile for aria2
#
FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation
ENV TOKEN=00000000-0000-0000-0000-000000000000
RUN set -xe \
&& apk add --no-cache aria2 \
&& aria2c https://github.com/tianon/gosu/releases/download/1.14/gosu-armhf -o /usr/local/bin/gosu \
&& chmod +x /usr/local/bin/gosu \
&& adduser -D aria2
COPY ./data/aria2.conf /etc/aria2/
VOLUME /data /etc/aria2
WORKDIR /data
EXPOSE 6800
CMD set -xe \
&& chown -R aria2:aria2 /data \
&& gosu aria2 aria2c --conf-path=/etc/aria2/aria2.conf \
--rpc-secret=${TOKEN}

11
aria2/arm/data/aria2.conf Normal file
View File

@ -0,0 +1,11 @@
dir=/data
disable-ipv6=true
enable-rpc=true
max-download-limit=0
max-upload-limit=0
rpc-allow-origin-all=true
rpc-listen-all=true
rpc-listen-port=6800
rpc-secret=00000000-0000-0000-0000-000000000000
seed-ratio=0
seed-time=0

View File

@ -0,0 +1,19 @@
version: "3.8"
services:
aria2:
image: easypi/aria2-arm
ports:
- "6800:6800"
volumes:
- ./data/disk:/data
environment:
- TOKEN=e6c3778f-6361-4ed0-b126-f2cf8fca06db
restart: unless-stopped
webui:
image: easypi/ariang-arm
ports:
- "8080:80"
restart: unless-stopped

14
ariang/arm/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
#
# Dockerfile for AriaNg-arm
#
FROM arm32v7/nginx:alpine
MAINTAINER EasyPi Software Foundation
ENV ARIA_NG_VERSION=1.2.2
ENV ARIA_NG_URL=https://github.com/mayswind/AriaNg/releases/download/${ARIA_NG_VERSION}/AriaNg-${ARIA_NG_VERSION}.zip
RUN set -xe \
&& cd /usr/share/nginx/html \
&& rm -rf * \
&& curl -sSL ${ARIA_NG_URL} | busybox unzip -

View File

@ -0,0 +1,7 @@
version: "3.8"
services:
ariang:
image: easypi/ariang-arm
ports:
- "8080:80"
restart: unless-stopped