mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-19 12:02:19 +02:00
add aria2-arm
This commit is contained in:
parent
1dedeb31ba
commit
5836e30a3f
24
aria2/arm/Dockerfile
Normal file
24
aria2/arm/Dockerfile
Normal 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
11
aria2/arm/data/aria2.conf
Normal 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
|
19
aria2/arm/docker-compose.yml
Normal file
19
aria2/arm/docker-compose.yml
Normal 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
14
ariang/arm/Dockerfile
Normal 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 -
|
7
ariang/arm/docker-compose.yml
Normal file
7
ariang/arm/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
ariang:
|
||||||
|
image: easypi/ariang-arm
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
restart: unless-stopped
|
Loading…
x
Reference in New Issue
Block a user