Merge branch 'master' into feat-startup

This commit is contained in:
Ionut Filip
2018-10-23 12:51:32 +03:00
committed by GitHub
13 changed files with 46 additions and 11 deletions

View File

@@ -4,8 +4,11 @@ RUN apk add --no-cache clamav rsyslog wget clamav-libunrar
COPY conf /etc/clamav
COPY start.py /start.py
COPY health.sh /health.sh
EXPOSE 3310/tcp
VOLUME ["/data"]
CMD /start.py
HEALTHCHECK CMD /health.sh

8
optional/clamav/health.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
if [ "$(echo PING | nc localhost 3310)" = "PONG" ]; then
echo "ping successful"
else
echo "ping failed"
exit 1
fi

View File

@@ -1,7 +1,7 @@
FROM alpine:edge
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk add --no-cache radicale@testing py-dulwich@testing
&& apk add --no-cache radicale@testing py-dulwich@testing curl
COPY radicale.conf /radicale.conf
@@ -9,3 +9,5 @@ EXPOSE 5232/tcp
VOLUME ["/data"]
CMD radicale -f -S -C /radicale.conf
HEALTHCHECK CMD curl -f -L http://localhost:5232/ || exit 1