Skip to content

Commit

Permalink
chore: Security hotfixes for v2.0.6 branch (#8480)
Browse files Browse the repository at this point in the history
* chore: upgrade go in dockerfile (#8420)

(cherry picked from commit 6289a4b)

* chore: Update skaffold base image (#8460)

* chore: Revert "chore: change skaffold base image (#8433)"

This reverts commit 6b3f673.

* chore: update skaffold base image to ubuntu:20.04

* chore: add noninteractive

(cherry picked from commit 9847653)

---------

Co-authored-by: ericzzzzzzz <[email protected]>
  • Loading branch information
aaron-prindle and ericzzzzzzz authored Mar 1, 2023
1 parent a3efe9d commit 29e4c2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions deploy/skaffold/Dockerfile.deps
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ RUN \
sha256sum -c bazel.${ARCH}.sha256
RUN chmod +x bazel

FROM gcr.io/gcp-runtimes/ubuntu_20_0_4 as runtime_deps
FROM ubuntu:20.04 as runtime_deps

RUN apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y \
Expand Down Expand Up @@ -147,6 +147,7 @@ RUN gcloud auth configure-docker && \
gcloud components install gke-gcloud-auth-plugin

FROM runtime_deps
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
build-essential \
python-setuptools \
Expand All @@ -156,5 +157,5 @@ RUN apt-get update && apt-get install --no-install-recommends --no-install-sugge
jq \
apt-transport-https && \
rm -rf /var/lib/apt/lists/*
COPY --from=golang:1.19.1 /usr/local/go /usr/local/go
COPY --from=golang:1.19.2 /usr/local/go /usr/local/go
ENV PATH /usr/local/go/bin:/root/go/bin:$PATH
5 changes: 3 additions & 2 deletions deploy/skaffold/Dockerfile.deps.lts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ RUN \
RUN tar -zxf gcloud.tar.gz


FROM gcr.io/gcp-runtimes/ubuntu_20_0_4 as runtime_deps
FROM ubuntu:20.04 as runtime_deps

RUN apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y \
Expand All @@ -91,6 +91,7 @@ RUN gcloud auth configure-docker && \
gcloud components install gke-gcloud-auth-plugin

FROM runtime_deps
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
build-essential \
python-setuptools \
Expand All @@ -100,5 +101,5 @@ RUN apt-get update && apt-get install --no-install-recommends --no-install-sugge
jq \
apt-transport-https && \
rm -rf /var/lib/apt/lists/*
COPY --from=golang:1.19.1 /usr/local/go /usr/local/go
COPY --from=golang:1.19.2 /usr/local/go /usr/local/go
ENV PATH /usr/local/go/bin:/root/go/bin:$PATH
5 changes: 3 additions & 2 deletions deploy/skaffold/Dockerfile.deps.slim
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ RUN \
RUN tar -zxf gcloud.tar.gz


FROM gcr.io/gcp-runtimes/ubuntu_20_0_4 as runtime_deps
FROM ubuntu:20.04 as runtime_deps

RUN apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y \
Expand All @@ -91,6 +91,7 @@ RUN gcloud auth configure-docker && \
gcloud components install gke-gcloud-auth-plugin

FROM runtime_deps
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
build-essential \
python-setuptools \
Expand All @@ -100,5 +101,5 @@ RUN apt-get update && apt-get install --no-install-recommends --no-install-sugge
jq \
apt-transport-https && \
rm -rf /var/lib/apt/lists/*
COPY --from=golang:1.19.1 /usr/local/go /usr/local/go
COPY --from=golang:1.19.2 /usr/local/go /usr/local/go
ENV PATH /usr/local/go/bin:/root/go/bin:$PATH

0 comments on commit 29e4c2f

Please sign in to comment.