From e9e876343c3bcd867bb20885d6f53fb6bdda37d6 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 24 Oct 2025 20:09:56 +0200 Subject: [PATCH] fix Dockerfile --- Dockerfile | 12 +++++++++++- deployment/deploy-yml.tmpl | 17 +---------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2cd3920..7eaa0a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,20 @@ FROM alpine:3.22.2 LABEL Maintainer="Wolfgang Hottgenroth " -LABEL ImageName="" +LABEL ImageName="knot-dns-hidden-primary" RUN apk add --no-cache knot knot-utils bash git openssh-client-default +# Create necessary directories +RUN mkdir -p /etc/knot /var/lib/knot/keys /var/lib/knot/zones + +# Copy configuration and zone files +COPY knot.conf /etc/knot/knot.conf +COPY my-dnssec-test-domain.de.zone /var/lib/knot/my-dnssec-test-domain.de.zone + +# Set proper ownership +RUN chown -R knot:knot /etc/knot /var/lib/knot + VOLUME /etc/knot VOLUME /var/lib/knot diff --git a/deployment/deploy-yml.tmpl b/deployment/deploy-yml.tmpl index 3b25c3a..0541599 100644 --- a/deployment/deploy-yml.tmpl +++ b/deployment/deploy-yml.tmpl @@ -30,8 +30,6 @@ spec: mountPath: /etc/knot - name: knot-data mountPath: /var/lib/knot - - name: knot-zones - mountPath: /var/lib/knot/zones resources: requests: memory: "128Mi" @@ -56,9 +54,6 @@ spec: - name: knot-data persistentVolumeClaim: claimName: knot-dns-data - - name: knot-zones - persistentVolumeClaim: - claimName: knot-dns-zones --- apiVersion: v1 kind: Service @@ -99,15 +94,5 @@ spec: resources: requests: storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: knot-dns-zones -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 100Mi +