mirror of
https://github.com/linuxserver/docker-diskover.git
synced 2026-02-20 04:57:50 +08:00
added logrotate and rq-dashboard
This commit is contained in:
parent
bbb4c1107c
commit
6ba593003d
@ -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 && \
|
||||
|
||||
7
root/etc/services.d/rq-dashboard/run
Normal file
7
root/etc/services.d/rq-dashboard/run
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user