From 634f42f228a25c49bd60e32f713fac610aa061dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berkay=20Tekin=20=C3=96z?= Date: Tue, 6 Feb 2024 18:04:07 +0300 Subject: [PATCH] Added rockcraft.yaml for CoreDNS (#1) --- rockcraft.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 rockcraft.yaml diff --git a/rockcraft.yaml b/rockcraft.yaml new file mode 100644 index 0000000..fe6abe0 --- /dev/null +++ b/rockcraft.yaml @@ -0,0 +1,36 @@ +name: coredns +summary: ROCK for the CoreDNS Project. +description: This ROCK is a drop in replacement for the coredns/coredns image. +version: "1.11.1" +license: Apache-2.0 + +base: bare +build-base: ubuntu@22.04 +platforms: + amd64: + # TODO: Add after workflows support bulding arm64 ROCKs + # arm64: + +services: + coredns: + override: replace + summary: "coredns service" + startup: enabled + command: "/coredns" + +parts: + coredns: + plugin: nil + source: https://github.com/coredns/coredns + source-type: git + source-tag: v1.11.1 + source-depth: 1 + build-packages: + - build-essential + build-snaps: + - go/1.21/stable + stage-packages: + - ca-certificates_data + override-build: | + make + cp $CRAFT_PART_BUILD/coredns $CRAFT_PRIME