Skip to content

Commit abc3dc4

Browse files
committed
update etcd to v3.5.22
Signed-off-by: haorenfsa <haorenfsa@gmail.com>
1 parent fa7439a commit abc3dc4

1 file changed

Lines changed: 15 additions & 22 deletions

File tree

3.5/ubuntu22.04/Dockerfile

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ LABEL maintainer="Team DevOps of Zilliz <devops@zilliz.com" \
77
org.opencontainers.image.description="Application packaged by Bitnami, polished by zilliztech" \
88
org.opencontainers.image.licenses="Apache-2.0" \
99
org.opencontainers.image.source="https://github.com/milvus-io/bitnami-docker-etcd" \
10-
org.opencontainers.image.ref.name="3.5.21-r1" \
10+
org.opencontainers.image.ref.name="3.5.22-r1" \
1111
org.opencontainers.image.title="etcd" \
1212
org.opencontainers.image.vendor="VMware, Inc." \
13-
org.opencontainers.image.version="3.5.21-r1"
13+
org.opencontainers.image.version="3.5.22-r1"
1414

1515
ENV HOME="/" \
1616
OS_ARCH_RAW="${TARGETARCH}" \
@@ -23,35 +23,28 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
2323
RUN install_packages ca-certificates curl procps
2424
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
2525
OS_ARCH=`echo ${OS_ARCH_RAW}| sed 's|/|-|'` && \
26-
curl -SsLf https://github.com/etcd-io/etcd/releases/download/v3.5.21/etcd-v3.5.21-${OS_ARCH}.tar.gz -O && \
27-
tar -zxf "etcd-v3.5.21-${OS_ARCH}.tar.gz" && \
26+
curl -SsLf https://github.com/etcd-io/etcd/releases/download/v3.5.22/etcd-v3.5.22-${OS_ARCH}.tar.gz -O && \
27+
tar -zxf "etcd-v3.5.22-${OS_ARCH}.tar.gz" && \
2828
mkdir -p /opt/bitnami/etcd/bin && \
29-
mv ./etcd-v3.5.21-${OS_ARCH}/etcd /opt/bitnami/etcd/bin/etcd && \
30-
mv ./etcd-v3.5.21-${OS_ARCH}/etcdctl /opt/bitnami/etcd/bin/etcdctl && \
31-
mv ./etcd-v3.5.21-${OS_ARCH}/etcdutl /opt/bitnami/etcd/bin/etcdutl && \
32-
rm -rf "etcd-v3.5.21-${OS_ARCH}.tar.gz"
29+
mv ./etcd-v3.5.22-${OS_ARCH}/etcd /opt/bitnami/etcd/bin/etcd && \
30+
mv ./etcd-v3.5.22-${OS_ARCH}/etcdctl /opt/bitnami/etcd/bin/etcdctl && \
31+
mv ./etcd-v3.5.22-${OS_ARCH}/etcdutl /opt/bitnami/etcd/bin/etcdutl && \
32+
rm -rf "etcd-v3.5.22-${OS_ARCH}.tar.gz"
3333
RUN cd /tmp/bitnami/pkg/cache/ && \
34-
OS_ARCH=`echo ${OS_ARCH_RAW}| sed 's|/|-|'` && \
35-
COMPONENTS=( \
36-
"yq-4.45.1-3-${OS_ARCH}-debian-12" \
37-
) && \
38-
for COMPONENT in "${COMPONENTS[@]}"; do \
39-
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
40-
curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz" -O ; \
41-
curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz.sha256" -O ; \
42-
fi && \
43-
sha256sum -c "${COMPONENT}.tar.gz.sha256" && \
44-
tar -zxf "${COMPONENT}.tar.gz" -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
45-
rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \
46-
done
34+
OS_ARCH=`echo ${OS_ARCH_RAW}| sed 's|/|_|'` && \
35+
if [ ! -f "yq_${OS_ARCH}.tar.gz" ]; then \
36+
curl -SsLf "https://github.com/mikefarah/yq/releases/download/v4.45.3/yq_${OS_ARCH}" -O ; \
37+
fi && \
38+
mkdir -p /opt/bitnami/common/bin/ && \
39+
mv "yq_${OS_ARCH}" /opt/bitnami/common/bin/yq
4740
RUN apt-get autoremove --purge -y curl ca-certificates && \
4841
apt-get update && apt-get upgrade -y && \
4942
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
5043
RUN chmod g+rwX /opt/bitnami
5144

5245
COPY rootfs /
5346
RUN /opt/bitnami/scripts/etcd/postunpack.sh
54-
ENV APP_VERSION="3.5.21" \
47+
ENV APP_VERSION="3.5.22" \
5548
BITNAMI_APP_NAME="etcd" \
5649
ETCDCTL_API="3" \
5750
PATH="/opt/bitnami/common/bin:/opt/bitnami/etcd/bin:$PATH"

0 commit comments

Comments
 (0)