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 0000000000000000000000000000000000000000..a3369c02b75eb53dd2bf3bb9da4d116370d517e6 --- /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 4240ab7c9a9de3b43787f467ae5292c3574e96ec..49565e861991326043ac0ae9a82bc2ac1e86889c 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 91efc193d33dc13b9ff58075389662b768498051..423fbaa56b9c702c9592afbf32695ba6cd19b48e 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 12361c86d5085011c8c4febc14bbf3b748872b92..d4fb270b2df3e98e2604445fdc3c5ead8e419a1b 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