123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- # with `FROM docker.io/alpine:3.16.1`:
- # > $ apk add --no-cache \
- # > --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
- # > dma=0.13-r3
- # > [...]
- # > ERROR: unable to select packages:
- # > so:libcrypto.so.3 (no such package):
- # > required by: dma-0.13-r3[so:libcrypto.so.3]
- # > so:libssl.so.3 (no such package):
- # > required by: dma-0.13-r3[so:libssl.so.3]
- FROM docker.io/alpine:20230901
- # https://git.alpinelinux.org/aports/log/community/dumb-init
- ARG DUMB_INIT_PACKAGE_VERSION=1.2.5-r3
- # https://github.com/openbsd/src/commits/master/usr.bin/nc
- # https://git.alpinelinux.org/aports/log/main/netcat-openbsd?h=v20230329
- ARG NETCAT_PACKAGE_VERSION=1.225-r0
- # https://git.alpinelinux.org/aports/log/testing/dma
- ARG DMA_REPOSITORY=http://dl-cdn.alpinelinux.org/alpine/edge/testing
- ARG DMA_PACKAGE_VERSION=0.13-r4
- RUN apk add --no-cache \
- dumb-init=${DUMB_INIT_PACKAGE_VERSION} \
- netcat-openbsd=${NETCAT_PACKAGE_VERSION} \
- && apk add --repository=${DMA_REPOSITORY} --no-cache \
- dma=${DMA_PACKAGE_VERSION} \
- && adduser -S -G mail report
- VOLUME /var/spool/dma
- ENV TOR_HOST= \
- TOR_PORT=9050 \
- ONION_SERVICE_HOST= \
- ONION_SERVICE_PORT= \
- TIMEOUT_SECONDS=4 \
- SLEEP_DURATION=16s \
- RETRIES=0 \
- MAIL_TO= \
- VERBOSE=
- COPY --chown=report:nobody monitor.sh /
- USER report
- ENTRYPOINT ["dumb-init", "--"]
- CMD ["/monitor.sh"]
- HEALTHCHECK CMD nc -z "$TOR_HOST" "$TOR_PORT" || exit 1
- # https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
- ARG REVISION=
- LABEL org.opencontainers.image.title="report online status of tor onion services via email" \
- org.opencontainers.image.source="https://github.com/fphammerle/onion-service-status-mail" \
- org.opencontainers.image.revision="$REVISION"
|