nsupdate (sha256:295e8f617fb56ae3db08dc6c39ade044471ab6fb1fd99005f1f444d1864bc73d)
Published 2024-11-17 00:09:00 +01:00 by chris
Installation
docker pull git.debilux.org/chris/nsupdate@sha256:295e8f617fb56ae3db08dc6c39ade044471ab6fb1fd99005f1f444d1864bc73d
sha256:295e8f617fb56ae3db08dc6c39ade044471ab6fb1fd99005f1f444d1864bc73d
Image Layers
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
ENV TZ=UTC |
ENV SCHEDULE=* * * * * |
ENV NSUPDATE_CONFD_DIR=/config |
ENV NSUPDATE_LOG_DIR=/log |
RUN /bin/sh -c apk update # buildkit |
RUN /bin/sh -c apk add --no-cache git curl libxml2-utils tzdata jq # buildkit |
RUN /bin/sh -c ln -sf "/usr/share/zoneinfo/${TZ}" /etc/localtime && echo "${TZ}" > /etc/timezone && date # buildkit |
ADD https://api.github.com/repos/chrisb86/nsupdate/git/refs/heads/main /.git-hashref # buildkit |
COPY nsupdate.sh /usr/local/bin/nsupdate.sh # buildkit |
RUN /bin/sh -c chmod +x /usr/local/bin/nsupdate.sh # buildkit |
RUN /bin/sh -c echo "${SCHEDULE} sh /usr/local/bin/nsupdate.sh" >> /etc/crontabs/root # buildkit |
CMD ["crond" "-l" "2" "-f"] |
VOLUME [/config] |
VOLUME [/log] |