|
16 | 16 | # NOTE: we attempt to avoid unnecessary tools and image layers while |
17 | 17 | # supporting kubernetes builds, kind installation, etc. |
18 | 18 |
|
19 | | -FROM debian:bookworm |
| 19 | +FROM debian:bookworm-20251020 |
20 | 20 |
|
21 | 21 | # arg that specifies the image name (for debugging) |
22 | 22 | ARG IMAGE_ARG |
@@ -51,57 +51,57 @@ COPY wrapper.sh /usr/local/bin/ |
51 | 51 | # Trying to remount these makes for a very noisy error block in the beginning of |
52 | 52 | # the pod logs, so we just comment out the call to it... :shrug: |
53 | 53 | RUN echo "Installing Packages ..." \ |
54 | | - && apt-get update \ |
55 | | - && apt-get install -y --no-install-recommends \ |
56 | | - apt-transport-https \ |
57 | | - build-essential \ |
58 | | - ca-certificates \ |
59 | | - curl \ |
60 | | - file \ |
61 | | - git \ |
62 | | - gnupg2 \ |
63 | | - iproute2 \ |
64 | | - kmod \ |
65 | | - lsb-release \ |
66 | | - mercurial \ |
67 | | - pkg-config \ |
68 | | - procps \ |
69 | | - python3 \ |
70 | | - rsync \ |
71 | | - software-properties-common \ |
72 | | - unzip \ |
73 | | - && rm -rf /var/lib/apt/lists/* \ |
| 54 | + && apt-get update \ |
| 55 | + && apt-get install -y --no-install-recommends \ |
| 56 | + apt-transport-https \ |
| 57 | + build-essential \ |
| 58 | + ca-certificates \ |
| 59 | + curl \ |
| 60 | + file \ |
| 61 | + git \ |
| 62 | + gnupg2 \ |
| 63 | + iproute2 \ |
| 64 | + kmod \ |
| 65 | + lsb-release \ |
| 66 | + mercurial \ |
| 67 | + pkg-config \ |
| 68 | + procps \ |
| 69 | + python3 \ |
| 70 | + rsync \ |
| 71 | + software-properties-common \ |
| 72 | + unzip \ |
| 73 | + && rm -rf /var/lib/apt/lists/* \ |
74 | 74 | && echo "Installing Go ..." \ |
75 | | - && if [ -z "${GO_VERSION}" ]; then GO_VERSION=$(curl -fsSL https://go.dev/VERSION?m=text | grep -oP "go\K(.*)"); fi \ |
76 | | - && export GO_TARBALL="go${GO_VERSION}.linux-amd64.tar.gz" \ |
77 | | - && curl -fsSL "https://go.dev/dl/${GO_TARBALL}" --output "${GO_TARBALL}" \ |
78 | | - && tar xzf "${GO_TARBALL}" -C /usr/local \ |
79 | | - && rm "${GO_TARBALL}"\ |
80 | | - && mkdir -p "${GOPATH}/bin" \ |
| 75 | + && if [ -z "${GO_VERSION}" ]; then GO_VERSION=$(curl -fsSL https://go.dev/VERSION?m=text | grep -oP "go\K(.*)"); fi \ |
| 76 | + && export GO_TARBALL="go${GO_VERSION}.linux-amd64.tar.gz" \ |
| 77 | + && curl -fsSL "https://go.dev/dl/${GO_TARBALL}" --output "${GO_TARBALL}" \ |
| 78 | + && tar xzf "${GO_TARBALL}" -C /usr/local \ |
| 79 | + && rm "${GO_TARBALL}"\ |
| 80 | + && mkdir -p "${GOPATH}/bin" \ |
81 | 81 | && echo "Installing gcloud SDK, kubectl ..." \ |
82 | | - && curl -fsSL https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz --output google-cloud-sdk.tar.gz \ |
83 | | - && tar xzf google-cloud-sdk.tar.gz -C / \ |
84 | | - && rm google-cloud-sdk.tar.gz \ |
85 | | - && /google-cloud-sdk/install.sh \ |
86 | | - --disable-installation-options \ |
87 | | - --bash-completion=false \ |
88 | | - --path-update=false \ |
89 | | - --usage-reporting=false \ |
90 | | - && gcloud components install kubectl \ |
| 82 | + && curl -fsSL https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz --output google-cloud-sdk.tar.gz \ |
| 83 | + && tar xzf google-cloud-sdk.tar.gz -C / \ |
| 84 | + && rm google-cloud-sdk.tar.gz \ |
| 85 | + && /google-cloud-sdk/install.sh \ |
| 86 | + --disable-installation-options \ |
| 87 | + --bash-completion=false \ |
| 88 | + --path-update=false \ |
| 89 | + --usage-reporting=false \ |
| 90 | + && gcloud components install kubectl \ |
91 | 91 | && echo "Installing Docker ..." \ |
92 | | - && curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \ |
93 | | - && chmod a+r /etc/apt/keyrings/docker.gpg \ |
94 | | - && echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ |
95 | | - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ |
96 | | - tee /etc/apt/sources.list.d/docker.list > /dev/null \ |
97 | | - && apt-get update \ |
98 | | - && apt-get install -y --no-install-recommends docker-ce docker-buildx-plugin \ |
99 | | - && rm -rf /var/lib/apt/lists/* \ |
100 | | - && sed -i 's/cgroupfs_mount$/#cgroupfs_mount\n/' /etc/init.d/docker \ |
101 | | - && sed -i 's/ulimit -Hn/# ulimit -Hn/g' /etc/init.d/docker \ |
| 92 | + && curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \ |
| 93 | + && chmod a+r /etc/apt/keyrings/docker.gpg \ |
| 94 | + && echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ |
| 95 | + "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ |
| 96 | + tee /etc/apt/sources.list.d/docker.list > /dev/null \ |
| 97 | + && apt-get update \ |
| 98 | + && apt-get install -y --no-install-recommends docker-ce docker-buildx-plugin \ |
| 99 | + && rm -rf /var/lib/apt/lists/* \ |
| 100 | + && sed -i 's/cgroupfs_mount$/#cgroupfs_mount\n/' /etc/init.d/docker \ |
| 101 | + && sed -i 's/ulimit -Hn/# ulimit -Hn/g' /etc/init.d/docker \ |
102 | 102 | && echo "Ensuring Legacy Iptables ..." \ |
103 | | - && update-alternatives --set iptables /usr/sbin/iptables-legacy \ |
104 | | - && update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy |
| 103 | + && update-alternatives --set iptables /usr/sbin/iptables-legacy \ |
| 104 | + && update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy |
105 | 105 |
|
106 | 106 | # entrypoint is our wrapper script, in Prow you will need to explicitly re-specify this |
107 | 107 | ENTRYPOINT ["wrapper.sh"] |
|
0 commit comments