From 6130a3f1a7396116e60f59203a19b8163c1de3f5 Mon Sep 17 00:00:00 2001 From: Hollow Man Date: Wed, 16 Feb 2022 00:11:56 +0800 Subject: [PATCH] Submission for CoreDNS in openEuler Signed-off-by: jiangsonglin2 --- coredns/1.7.0/21.09/Dockerfile | 7 +++++++ coredns/README.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 coredns/1.7.0/21.09/Dockerfile create mode 100644 coredns/README.md diff --git a/coredns/1.7.0/21.09/Dockerfile b/coredns/1.7.0/21.09/Dockerfile new file mode 100644 index 00000000..8c89ebc6 --- /dev/null +++ b/coredns/1.7.0/21.09/Dockerfile @@ -0,0 +1,7 @@ +FROM openeuler/openeuler:21.09 + +RUN yum -y update && yum clean all +RUN yum -y install coredns ca-certificates && yum clean all + +EXPOSE 53 53/udp +ENTRYPOINT ["/sbin/coredns"] diff --git a/coredns/README.md b/coredns/README.md new file mode 100644 index 00000000..0fac502c --- /dev/null +++ b/coredns/README.md @@ -0,0 +1,31 @@ +# CoreDNS + +# Quick reference + +- The official CoreDNS docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) + +# Build reference + +1. Build images and push: +```shell +docker buildx build -t "openeuler/coredns:$VERSION" --platform linux/amd64,linux/arm64 . --push +``` + +We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/) + +2. Run: +```shell +docker run -ti openeuler/coredns:1.7.0-21.09 +``` + +# Supported tags and respective Dockerfile links + +- 1.7.0-21.09: coredns v1.7.0, openEuler 21.09 + +## Operating System +Linux/Unix, ARM64 or x86-64 architecture. + -- Gitee