Skip to content

Commit 86d3d8c

Browse files
authored
chore: update base image to include tag (#3409)
In this PR: - Include tag in base image. Renovate Bot can update the image sha with a fixed tag ([doc](https://docs.renovatebot.com/docker/#digest-updating)). Without the tag, the updated image maybe not what we want.
1 parent 1baedfe commit 86d3d8c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.cloudbuild/library_generation/library_generation.Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
# install gapic-generator-java in a separate layer so we don't overload the image
1616
# with the transferred source code and jars
1717

18-
# 3.9.9-eclipse-temurin-11-alpine
19-
FROM docker.io/library/maven@sha256:006d25558f9d5244ed55b5d2bd8eaf34d883e447d0c4b940e67b9f44d21167bf AS ggj-build
18+
FROM docker.io/library/maven:3.9.9-eclipse-temurin-11-alpine@sha256:006d25558f9d5244ed55b5d2bd8eaf34d883e447d0c4b940e67b9f44d21167bf AS ggj-build
2019

2120
WORKDIR /sdk-platform-java
2221
COPY . .
@@ -28,8 +27,7 @@ RUN mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip
2827
RUN cp "/root/.m2/repository/com/google/api/gapic-generator-java/${DOCKER_GAPIC_GENERATOR_VERSION}/gapic-generator-java-${DOCKER_GAPIC_GENERATOR_VERSION}.jar" \
2928
"./gapic-generator-java.jar"
3029

31-
# alpine:3.20.3
32-
FROM docker.io/library/alpine@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d as glibc-compat
30+
FROM docker.io/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d as glibc-compat
3331

3432
RUN apk add git sudo
3533
# This SHA is the latest known-to-work version of this binary compatibility tool
@@ -49,8 +47,7 @@ RUN git checkout "${GLIB_MUS_SHA}"
4947
RUN chmod a+x compile-x86_64-alpine-linux.sh
5048
RUN sh compile-x86_64-alpine-linux.sh
5149

52-
# python:3.12.7-alpine3.20
53-
FROM docker.io/library/python@sha256:5049c050bdc68575a10bcb1885baa0689b6c15152d8a56a7e399fb49f783bf98 as final
50+
FROM docker.io/library/python:3.12.7-alpine3.20@sha256:5049c050bdc68575a10bcb1885baa0689b6c15152d8a56a7e399fb49f783bf98 as final
5451

5552
ARG OWLBOT_CLI_COMMITTISH=ab222d9a20bb27586433caedc70f049b7853db7e
5653
ARG PROTOC_VERSION=25.5

0 commit comments

Comments
 (0)