2019-11-04 21:27:41 +00:00
|
|
|
FROM alpine:3.10.3
|
|
|
|
LABEL maintainer "Stefan Hoffmann, Nils Jakobi"
|
2018-04-17 22:21:30 +00:00
|
|
|
|
2019-11-04 21:45:49 +00:00
|
|
|
VOLUME [ "/opt/data" ]
|
|
|
|
|
2019-11-04 21:56:00 +00:00
|
|
|
# prerequisists
|
|
|
|
RUN apk add curl sed
|
|
|
|
|
2018-04-17 22:21:30 +00:00
|
|
|
# Configure cron
|
|
|
|
COPY crontab /etc/cron/crontab
|
|
|
|
|
2019-11-04 21:27:41 +00:00
|
|
|
# Copy script
|
|
|
|
WORKDIR /opt/fftdf/
|
|
|
|
COPY nodePoller.sh .
|
|
|
|
|
2018-04-17 22:21:30 +00:00
|
|
|
# Init cron
|
|
|
|
RUN crontab /etc/cron/crontab
|
|
|
|
|
2019-11-04 21:56:00 +00:00
|
|
|
ENTRYPOINT ["crond", "-f"]
|