mirror of
https://github.com/casjaysdevdocker/aria2
synced 2025-05-14 20:11:26 -04:00
🗃️ Committing everything that changed 🗃️
Dockerfile .env.scripts rootfs/usr/local/bin/entrypoint.sh
This commit is contained in:
parent
6a157bb7f9
commit
1fec9d4373
@ -42,7 +42,7 @@ ENV_DISTRO_TAG="${IMAGE_VERSION}"
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Env
|
# Env
|
||||||
SERVICE_PORT="80"
|
SERVICE_PORT="80"
|
||||||
EXPOSE_PORTS=""
|
EXPOSE_PORTS="6800"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Versions
|
# Versions
|
||||||
PHP_VERSION="system"
|
PHP_VERSION="system"
|
||||||
|
@ -15,7 +15,7 @@ ARG USER="root"
|
|||||||
ARG SHELL_OPTS="set -e -o pipefail"
|
ARG SHELL_OPTS="set -e -o pipefail"
|
||||||
|
|
||||||
ARG SERVICE_PORT="80"
|
ARG SERVICE_PORT="80"
|
||||||
ARG EXPOSE_PORTS=""
|
ARG EXPOSE_PORTS="6800"
|
||||||
ARG PHP_VERSION="system"
|
ARG PHP_VERSION="system"
|
||||||
ARG NODE_VERSION="system"
|
ARG NODE_VERSION="system"
|
||||||
ARG NODE_MANAGER="system"
|
ARG NODE_MANAGER="system"
|
||||||
@ -136,7 +136,7 @@ RUN echo "Updating system files "; \
|
|||||||
|
|
||||||
RUN echo "Custom Settings"; \
|
RUN echo "Custom Settings"; \
|
||||||
$SHELL_OPTS; \
|
$SHELL_OPTS; \
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
RUN echo "Setting up users and scripts "; \
|
RUN echo "Setting up users and scripts "; \
|
||||||
$SHELL_OPTS; \
|
$SHELL_OPTS; \
|
||||||
@ -153,7 +153,7 @@ RUN echo "Setting OS Settings "; \
|
|||||||
|
|
||||||
RUN echo "Custom Applications"; \
|
RUN echo "Custom Applications"; \
|
||||||
$SHELL_OPTS; \
|
$SHELL_OPTS; \
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
RUN echo "Running custom commands"; \
|
RUN echo "Running custom commands"; \
|
||||||
if [ -f "/root/docker/setup/05-custom.sh" ];then echo "Running the custom script";/root/docker/setup/05-custom.sh||{ echo "Failed to execute /root/docker/setup/05-custom.sh" && exit 10; };echo "Done running the custom script";fi; \
|
if [ -f "/root/docker/setup/05-custom.sh" ];then echo "Running the custom script";/root/docker/setup/05-custom.sh||{ echo "Failed to execute /root/docker/setup/05-custom.sh" && exit 10; };echo "Done running the custom script";fi; \
|
||||||
@ -252,6 +252,6 @@ VOLUME [ "/config","/data" ]
|
|||||||
|
|
||||||
EXPOSE ${SERVICE_PORT} ${ENV_PORTS}
|
EXPOSE ${SERVICE_PORT} ${ENV_PORTS}
|
||||||
|
|
||||||
CMD [ "tail", "-f", "/dev/null" ]
|
CMD [ "tail" ]
|
||||||
ENTRYPOINT [ "tini","--","/usr/local/bin/entrypoint.sh" ]
|
ENTRYPOINT [ "tini","--","/usr/local/bin/entrypoint.sh" ]
|
||||||
HEALTHCHECK --start-period=10m --interval=5m --timeout=15s CMD [ "/usr/local/bin/entrypoint.sh", "healthcheck" ]
|
HEALTHCHECK --start-period=10m --interval=5m --timeout=15s CMD [ "/usr/local/bin/entrypoint.sh", "healthcheck" ]
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
# @@Description : Entrypoint file for aria2
|
# @@Description : Entrypoint file for aria2
|
||||||
# @@Changelog : New script
|
# @@Changelog : New script
|
||||||
# @@TODO : Better documentation
|
# @@TODO : Better documentation
|
||||||
# @@Other :
|
# @@Other :
|
||||||
# @@Resource :
|
# @@Resource :
|
||||||
# @@Terminal App : no
|
# @@Terminal App : no
|
||||||
# @@sudo/root : no
|
# @@sudo/root : no
|
||||||
# @@Template : other/docker-entrypoint
|
# @@Template : other/docker-entrypoint
|
||||||
@ -81,7 +81,7 @@ SERVICE_UID="${SERVICE_UID:-0}" # set the user id
|
|||||||
SERVICE_GID="${SERVICE_GID:-0}" # set the group id
|
SERVICE_GID="${SERVICE_GID:-0}" # set the group id
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# User and group in which the service switches to - IE: nginx,apache,mysql,postgres
|
# User and group in which the service switches to - IE: nginx,apache,mysql,postgres
|
||||||
SERVICE_USER="${SERVICE_USER:-$aria2}" # execute command as another user
|
SERVICE_USER="${SERVICE_USER:-aria2}" # execute command as another user
|
||||||
SERVICE_GROUP="${SERVICE_GROUP:-aria2}" # Set the service group
|
SERVICE_GROUP="${SERVICE_GROUP:-aria2}" # Set the service group
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Secondary ports
|
# Secondary ports
|
||||||
@ -411,6 +411,18 @@ init)
|
|||||||
echo "Container has been Initialized"
|
echo "Container has been Initialized"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
tail)
|
||||||
|
shift 1
|
||||||
|
case "$1" in
|
||||||
|
app)
|
||||||
|
shift 1
|
||||||
|
tail -f /data/logs/*/*.log
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
tail -f "${@:-/dev/null}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
logs)
|
logs)
|
||||||
shift 1
|
shift 1
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user