diff --git a/Dockerfile b/Dockerfile index 1a0371b..8b95947 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ LABEL maintainer="alex-phillips" RUN \ echo "**** install build packages ****" && \ apk add --no-cache \ + logrotate \ ncurses \ python3 && \ apk add --no-cache --virtual=build-dependencies \ @@ -17,6 +18,8 @@ RUN \ musl-dev \ python3-dev \ py3-pip && \ + # fix logrotate + sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf && \ echo "**** symlinking python ****" && \ ln -s /usr/bin/python3 /usr/bin/python && \ echo "**** install healthchecks ****" && \ @@ -24,6 +27,7 @@ RUN \ echo "**** install pip packages ****" && \ cd /app/diskover && \ pip3 install --no-cache-dir -r requirements.txt && \ + pip3 install rq-dashboard && \ echo "**** cleanup ****" && \ apk del --purge \ build-dependencies && \ diff --git a/root/etc/services.d/rq-dashboard/run b/root/etc/services.d/rq-dashboard/run new file mode 100644 index 0000000..f611f47 --- /dev/null +++ b/root/etc/services.d/rq-dashboard/run @@ -0,0 +1,7 @@ +#!/usr/bin/with-contenv bash + +REDIS_HOST=${REDIS_HOST:-redis} +REDIS_PORT=${REDIS_PORT:-6379} + +exec \ + s6-setuidgid abc /usr/bin/rq-dashboard -H $REDIS_HOST -P $REDIS_PORT