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 0000000000000000000000000000000000000000..c2dc2f367b74949830b3e53e1b529c705e96244c --- /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 e02b20e4282486c127dd5323749d86d310816b74..c3776efb13a0626fe075d45247b508f2b7d6e07e 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