Merge pull request #46 from svc-design/build-ci-image-ansible-runner

upgrade Helmfile -> 0.163.1
This commit is contained in:
shenlan 2024-04-30 14:06:18 +08:00 committed by GitHub
commit 497407a8c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,19 +1,19 @@
FROM python:3.10
FROM python:latest
ENV TIME_ZONE=Asia/Shanghai \
BIN_PERM=0755 \
BIN_DIR=/usr/local/bin \
HELM_URL=https://get.helm.sh \
HELM_VERSION="v3.10.2" \
HELM_FILE_URL=https://github.com/roboll/helmfile/releases/download \
HELM_FILE_VERSION=v0.139.9
HELM_FILE_URL=https://github.com/helmfile/helmfile/releases/download \
HELM_FILE_VERSION=0.163.1
RUN unlink /etc/localtime && ln -s /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime \
&& apt-get update -y && apt-get upgrade -y \
&& apt-get --reinstall -y install tar curl sshpass jq git vim uuid-runtime \
&& wget ${HELM_FILE_URL}/${HELM_FILE_VERSION}/helmfile_linux_amd64 -O ${BIN_DIR}/helmfile \
&& chmod ${BIN_PERM} ${BIN_DIR}/helmfile \
&& apt-get --reinstall -y install tar curl sshpass jq git vim uuid-runtime \ \
&& wget ${HELM_URL}/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xz -C ${BIN_DIR} --strip-components=1 linux-amd64/helm \
&& wget ${HELM_FILE_URL}/v${HELM_FILE_VERSION}/helmfile_${HELM_FILE_VERSION}_linux_amd64.tar.gz -O - | tar -xz -C ${BIN_DIR} --strip-components=1 linux-amd64/helmfile \
&& chmod ${BIN_PERM} ${BIN_DIR}/helmfile \
&& chmod ${BIN_PERM} ${BIN_DIR}/helm \
&& helm plugin install https://github.com/databus23/helm-diff \
&& rm -rf /var/lib/apt/lists/*