Update Dockerfile

Signed-off-by: shenlan <manbuzhe2009@qq.com>
This commit is contained in:
shenlan 2024-04-30 13:33:31 +08:00 committed by GitHub
parent 06ff4dc106
commit bbf7c6dd73

View File

@ -3,15 +3,19 @@ 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
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 \
&& helm plugin install https://github.com/databus23/helm-diff \
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 \
&& wget ${HELM_URL}/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xz -C ${BIN_DIR} --strip-components=1 linux-amd64/helm \
&& chmod ${BIN_PERM} ${BIN_DIR}/helm \
&& helm plugin install https://github.com/databus23/helm-diff \
&& rm -rf /var/lib/apt/lists/*
RUN pip install ansible==2.10 ansible-lint jmespath hvac jinja2 && ansible-galaxy collection install community.hashi_vault