-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (43 loc) · 1.72 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM python:3.11-slim
ENV VERSION_CT=0.9.0 \
VERSION_HELM=3.12.3 \
CLOUD_SDK_VERSION=465.0.0
ENV PATH /google-cloud-sdk/bin:$PATH
RUN set -x \
&& apt-get update \
&& apt-get install --yes --no-install-recommends \
ca-certificates \
curl \
connect-proxy \
git \
make \
openssh-client \
rsync \
&& rm -rf /var/lib/apt/lists/* \
&& curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz \
&& tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz \
&& rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz \
&& gcloud config set core/disable_usage_reporting true \
&& gcloud config set component_manager/disable_update_check true \
&& gcloud config set metrics/environment github_docker_image \
&& gcloud components install gke-gcloud-auth-plugin \
&& rm -rf /google-cloud-sdk/.install/.backup \
&& gcloud --version \
&& curl -fsSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -s -- --version "v${VERSION_HELM}" \
&& helm plugin install https://github.com/databus23/helm-diff \
&& python3 -m pip install --disable-pip-version-check --no-cache-dir \
ansible==8.4.0 \
ansible-core==2.15.4 \
Jinja2==3.1.3 \
netaddr==1.1.0 \
humanfriendly==10.0 \
jmespath==1.0.1 \
kubernetes==25.3.0 \
pyjwt==2.8.0 \
passlib==1.7.4 \
&& curl -Lo ct https://github.com/coreos/container-linux-config-transpiler/releases/download/v${VERSION_CT}/ct-v${VERSION_CT}-x86_64-unknown-linux-gnu \
&& chmod +x ct \
&& mv ct /usr/local/bin/ \
&& rm -rf /tmp/*
COPY ansible.cfg /etc/ansible/ansible.cfg
ENTRYPOINT []