mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 07:56:12 +00:00
* add goss healthcheck to meet * add goss healthcheck to scheduler * enhance goss tests for webapp * add meet and scheduler to make target for goss * fix healtcheck for webapp will report 200, but also cause an error because of it being requested over plain have dedicated url for check * disable stats reporting in build * update commander
45 lines
1.7 KiB
Docker
45 lines
1.7 KiB
Docker
FROM docker:18.09
|
|
|
|
ARG VCS_REF
|
|
|
|
ENV \
|
|
DOCKERIZE_VERSION=v0.6.1 \
|
|
GOSS_VERSION=v0.3.7 \
|
|
SUPERCRONIC_VERSION=0.1.9
|
|
|
|
LABEL maintainer=az@zok.xyz \
|
|
org.label-schema.name="Kopano scheduler container" \
|
|
org.label-schema.description="Helper container for running tasks within the Kopano stack" \
|
|
org.label-schema.url="https://kopano.io" \
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
org.label-schema.vcs-url="https://github.com/zokradonh/kopano-docker" \
|
|
org.label-schema.version=$SUPERCRONIC_VERSION \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
RUN apk --no-cache add bash curl ca-certificates
|
|
|
|
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
|
|
|
RUN wget https://github.com/aelsabbahy/goss/releases/download/$GOSS_VERSION/goss-linux-amd64 -O /usr/local/bin/goss \
|
|
&& chmod +x /usr/local/bin/goss \
|
|
&& goss --version
|
|
|
|
RUN wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 \
|
|
-O /usr/local/bin/supercronic \
|
|
&& chmod +x /usr/local/bin/supercronic
|
|
|
|
# Setup timezone
|
|
ENV TZ=UTC
|
|
RUN ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime
|
|
RUN printf '%s\n' "$TZ" > /etc/timezone
|
|
|
|
COPY start.sh /usr/local/bin/
|
|
COPY goss.yaml /goss/
|
|
|
|
CMD ["start.sh"]
|
|
|
|
# TODO interval does not only define how often the healtcheck is run, but also how long to wait for the first check after startup
|
|
HEALTHCHECK --interval=60m --timeout=15s \
|
|
CMD goss -g /goss/goss.yaml validate --format json_oneline |