Skip to content

Commit 7d19c8d

Browse files
Merge pull request #580 from Azure/base_image_vuln_fixes
Fixed Go Vulns due to istioctl and rootless docker kit
2 parents 9aa6cfe + 783b461 commit 7d19c8d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

linux/base.Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,15 @@ RUN chmod 755 /usr/local/bin/ansible* \
171171
&& /opt/ansible/bin/python -m pip install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements.txt
172172

173173

174-
# Install latest version of Istio
174+
# Install specific version of Istio from GitHub releases
175+
ENV ISTIO_VERSION=1.28.1
175176
RUN export TMP_DIR=$(mktemp -d) \
176-
&& pushd "${TMP_DIR}" \
177-
&& curl -sSL https://git.io/getLatestIstio | sh - \
178-
&& mv ./istio*/bin/istioctl /usr/local/bin/istioctl \
177+
&& cd "${TMP_DIR}" \
178+
&& curl -L https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istio-${ISTIO_VERSION}-linux-amd64.tar.gz -o istio.tar.gz \
179+
&& tar -xzf istio.tar.gz \
180+
&& mv istio-${ISTIO_VERSION}/bin/istioctl /usr/local/bin/istioctl \
179181
&& chmod 755 /usr/local/bin/istioctl \
180-
&& popd \
182+
&& cd / \
181183
&& rm -rf "${TMP_DIR}"
182184

183185
ENV GOROOT="/usr/lib/golang"
@@ -226,7 +228,7 @@ RUN curl -fsSL https://aka.ms/install-azd.sh | bash && \
226228
# Install rootless kit
227229
TMP_DIR=$(mktemp -d) && \
228230
pushd $TMP_DIR && \
229-
ROOTLESSKIT_VERSION=$(curl https://api.github.com/repos/rootless-containers/rootlesskit/releases/latest | jq -r '.tag_name') && \
231+
ROOTLESSKIT_VERSION=v2.3.5 && \
230232
curl -LO https://github.com/rootless-containers/rootlesskit/releases/download/${ROOTLESSKIT_VERSION}/rootlesskit-x86_64.tar.gz && \
231233
curl -LO https://github.com/rootless-containers/rootlesskit/releases/download/${ROOTLESSKIT_VERSION}/SHA256SUMS && \
232234
sha256sum -c SHA256SUMS --ignore-missing && \

0 commit comments

Comments
 (0)