Skip to content

Commit

Permalink
chore(genbot): upgrade base image and protoc (#7032)
Browse files Browse the repository at this point in the history
Upgrade version of base image to sufficiently new version. This gets us on a newer version of Alpine Linux (`3.16.2`) which gets us on a newer version of `protoc` (`3.18.1`). This is not the newest version of `protoc`, but it includes the necessary `go_package` annotation updates to the common protos that protobuf maintains to upgrade our dependency to the "new" protobuf-go repo distributions.

`docker:20.10`
Alpine Linux: `3.16.2`
Protobuf: `3.18.1-rc3`

Fixes #7031
  • Loading branch information
noahdietz authored Nov 11, 2022
1 parent 66e8e27 commit feb6b0a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/gapicgen/cmd/genbot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM docker:stable-dind
FROM docker:20.10

# Log the version of Alpine in use.
RUN cat /etc/alpine-release

ENV GO111MODULE on

Expand All @@ -15,8 +18,8 @@ RUN apk add libc6-compat
RUN apk add protoc protobuf-dev
RUN protoc --version

# Install Go.
RUN wget -O /tmp/go.tgz https://dl.google.com/go/go1.19.linux-amd64.tar.gz && \
# Install Go...quietly.
RUN wget -O /tmp/go.tgz https://dl.google.com/go/go1.19.linux-amd64.tar.gz -q && \
tar -C /usr/local -xzf /tmp/go.tgz && \
rm /tmp/go.tgz
ENV PATH /usr/local/go/bin:$PATH
Expand Down

0 comments on commit feb6b0a

Please sign in to comment.