Created
June 30, 2017 21:09
-
-
Save cmattoon/3dad5648e1de6e07c5caf93038922f7a to your computer and use it in GitHub Desktop.
named-checkzone Docker image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.6 | |
RUN apk update && apk add --no-cache bind | |
VOLUME ["/data"] | |
WORKDIR /data | |
ENTRYPOINT ["/usr/sbin/named-checkzone"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ZONE_NAME=${1:?"argv[1] = zone name"} | |
ZONE_FILE=${2:?"argv[2] = zone file"} | |
PWD=${PWD:-$(pwd)} | |
docker run --rm -v $PWD:/data cmattoon/named-checkzone $ZONE_NAME $ZONE_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment