Skip to content

Commit

Permalink
switch to knot:conf-clear image
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Jan 15, 2024
1 parent ddf7327 commit 33fa272
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ns/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG DOCKER_REGISTRY
FROM ${DOCKER_REGISTRY}cznic/knot
FROM ${DOCKER_REGISTRY}cznic/knot:conf-clear
# TODO fix version
# TODO don't use Dockerfile if nothing else is done here

Expand Down
2 changes: 2 additions & 0 deletions ns/conf/knot.conf.var
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
clear: !(zone)

server:
user: knot:knot
listen: 0.0.0.0@53
Expand Down
4 changes: 2 additions & 2 deletions ns/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ ls -lah /config/

# TODO Consider XDP, https://www.knot-dns.cz/docs/3.3/html/operation.html#pre-requisites

# Initialize config. Note: Existing configuration (storage volume) needs to be removed in order to apply new config!
knotc conf-check || knotc conf-import -f /etc/knot/knot.conf
# Apply config to confdb
knotc conf-import -f /etc/knot/knot.conf +nopurge

# Start knot for production
exec knotd

0 comments on commit 33fa272

Please sign in to comment.