add wrapper for running named-compilezone, update README

This commit is contained in:
2024-06-11 15:52:30 -04:00
parent 722f843fe9
commit 21de98c3e5
2 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,8 @@
#! /bin/bash
[ -x "$(which docker 2>/dev/null)" ] && DOCKER=docker
[ -x "$(which podman 2>/dev/null)" ] && DOCKER=podman
$DOCKER exec bind9 named-compilezone "$@"
$DOCKER run -ti --rm --name=bind9-tools --network=host \
-v "$(pwd):$(pwd)" -w "$(pwd)" \
docker.io/internetsystemsconsortium/bind9:9.18 named-compilezone "$@"