From fdadb22f12791435e57fe6474820a5973e7027d3 Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Sat, 16 Aug 2025 01:20:54 +0000 Subject: [PATCH] 24.03-lts-sp1 update etcd to 3.6.4 --- Database/etcd/3.6.4/24.03-lts-sp1/Dockerfile | 25 ++++++++++++++++++++ Database/etcd/meta.yml | 4 +++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 Database/etcd/3.6.4/24.03-lts-sp1/Dockerfile diff --git a/Database/etcd/3.6.4/24.03-lts-sp1/Dockerfile b/Database/etcd/3.6.4/24.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..c2dc2f36 --- /dev/null +++ b/Database/etcd/3.6.4/24.03-lts-sp1/Dockerfile @@ -0,0 +1,25 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +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/meta.yml b/Database/etcd/meta.yml index e02b20e4..c3776efb 100644 --- a/Database/etcd/meta.yml +++ b/Database/etcd/meta.yml @@ -1,2 +1,4 @@ 3.6.0-oe2403sp1: - path: 3.6.0/24.03-lts-sp1/Dcokerfile \ No newline at end of file + path: 3.6.0/24.03-lts-sp1/Dcokerfile +3.6.4-oe2403sp1: + path: 3.6.4/24.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee