From 2235895287af57e3fa36ad94f095d009f33876a9 Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Fri, 19 Sep 2025 00:06:11 +0000 Subject: [PATCH] 24.03-lts-sp2 update etcd to 3.6.4 --- Database/etcd/3.6.4/24.03-lts-sp2/Dockerfile | 25 ++++++++++++++++++++ Database/etcd/README.md | 1 + Database/etcd/doc/image-info.yml | 1 + Database/etcd/meta.yml | 4 +++- 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 Database/etcd/3.6.4/24.03-lts-sp2/Dockerfile diff --git a/Database/etcd/3.6.4/24.03-lts-sp2/Dockerfile b/Database/etcd/3.6.4/24.03-lts-sp2/Dockerfile new file mode 100644 index 00000000..a3369c02 --- /dev/null +++ b/Database/etcd/3.6.4/24.03-lts-sp2/Dockerfile @@ -0,0 +1,25 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +FROM $BASE AS builder + +ARG VERSION=3.6.4 +ARG TARGETARCH +RUN yum install -y make gcc git && \ + curl -fSL -o go.tar.gz https://golang.google.cn/dl/go1.23.9.linux-${TARGETARCH}.tar.gz && \ + tar -xvf go.tar.gz -C /usr/local +ENV PATH="/usr/local/go/bin:${PATH}" +RUN curl -fSL -o etcd.tar.gz https://github.com/etcd-io/etcd/archive/refs/tags/v${VERSION}.tar.gz && \ + mkdir -p /etcd && \ + tar -zxf etcd.tar.gz -C /etcd --strip-components=1 && \ + rm -rf etcd.tar.gz && \ + cd /etcd && \ + make -j$nproc + +# use distroless image as base +FROM openeuler/distroless-static:1.0.0-oe2403lts + +COPY --from=builder /etcd/bin/etcd /usr/bin/etcd +COPY --from=builder /etcd/bin/etcdctl /usr/bin/etcdctl +COPY --from=builder /etcd/bin/etcdutl /usr/bin/etcdutl + +EXPOSE 2379 2380 +CMD [ "etcd" ] \ No newline at end of file diff --git a/Database/etcd/README.md b/Database/etcd/README.md index 4240ab7c..49565e86 100644 --- a/Database/etcd/README.md +++ b/Database/etcd/README.md @@ -17,6 +17,7 @@ Learn more about etcd at [https://etcd.io/](https://etcd.io/). The tag of each `etcd` docker image is consist of the version of `etcd` and the version of basic image. The details are as follows | Tag | Currently | Architectures | |----------|-------------|------------------| +|[3.6.4-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Database/etcd/3.6.4/24.03-lts-sp2/Dockerfile) | etcd 3.6.4 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[3.6.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Database/etcd/3.6.0/24.03-lts-sp1/Dockerfile)| Etcd 3.6.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | # Usage diff --git a/Database/etcd/doc/image-info.yml b/Database/etcd/doc/image-info.yml index 91efc193..423fbaa5 100644 --- a/Database/etcd/doc/image-info.yml +++ b/Database/etcd/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| + |[3.6.4-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Database/etcd/3.6.4/24.03-lts-sp2/Dockerfile) | etcd 3.6.4 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[3.6.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Database/etcd/3.6.0/24.03-lts-sp1/Dockerfile)| Etcd 3.6.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | download: | diff --git a/Database/etcd/meta.yml b/Database/etcd/meta.yml index 12361c86..d4fb270b 100644 --- a/Database/etcd/meta.yml +++ b/Database/etcd/meta.yml @@ -1,4 +1,6 @@ 3.6.0-oe2403sp1: path: 3.6.0/24.03-lts-sp1/Dockerfile 3.6.4-oe2403sp1: - path: 3.6.4/24.03-lts-sp1/Dockerfile \ No newline at end of file + path: 3.6.4/24.03-lts-sp1/Dockerfile +3.6.4-oe2403sp2: + path: 3.6.4/24.03-lts-sp2/Dockerfile \ No newline at end of file -- Gitee