added logrotate and rq-dashboard

This commit is contained in:
alex-phillips 2018-06-07 10:06:14 -04:00
parent bbb4c1107c
commit 6ba593003d
2 changed files with 11 additions and 0 deletions

View File

@ -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 && \

View File

@ -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