Skip to content

Commit

Permalink
Update base images used for tests to golang:1.20. (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosjca authored Sep 15, 2023
1 parent feaf60e commit 0ef5cfa
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/defaults_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ languages:
runImage: "{{ .RunImagePrefix }}cxx:{{ .Version }}"

- language: go
buildImage: golang:1.17
buildImage: golang:1.20
runImage: "{{ .RunImagePrefix }}go:{{ .Version }}"

- language: java
Expand Down
2 changes: 1 addition & 1 deletion config/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var _ = Describe("Defaults", func() {
},
{
Language: "go",
BuildImage: "golang:1.17",
BuildImage: "golang:1.20",
RunImage: "gcr.io/grpc-fake-project/test-infra/go",
},
{
Expand Down
2 changes: 1 addition & 1 deletion containers/init/ready/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.17
FROM golang:1.20

RUN mkdir -p /src/ready
WORKDIR /src/ready
Expand Down
2 changes: 1 addition & 1 deletion containers/pre_built_workers/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.17
FROM golang:1.20

RUN mkdir -p /executable
WORKDIR /executable
Expand Down
2 changes: 1 addition & 1 deletion containers/runtime/controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.17 as builder
FROM golang:1.20 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion containers/runtime/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.17
FROM golang:1.20

RUN mkdir -p /src/workspace
WORKDIR /src/workspace
Expand Down
2 changes: 1 addition & 1 deletion containers/runtime/xds-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.17
FROM golang:1.20

RUN mkdir /bootstrap
WORKDIR /src/workspace
Expand Down
2 changes: 1 addition & 1 deletion controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func newDefaults() *config.Defaults {
},
{
Language: "go",
BuildImage: "golang:1.17",
BuildImage: "golang:1.20",
RunImage: "gcr.io/grpc-fake-project/test-infra/go",
},
{
Expand Down
4 changes: 2 additions & 2 deletions dashboard/config/postgres_replicator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# syntax=docker/dockerfile:1

# Build replicator
FROM golang:1.17 AS builder
FROM golang:1.20 AS builder

ARG REPOSITORY=grpc/test-infra
ARG GITREF=master
Expand All @@ -25,7 +25,7 @@ RUN git clone https://github.com/$REPOSITORY.git src \
&& make replicator REPLICATOR_OUTPUT_DIR=/

# Copy replicator binary and run it
FROM golang:1.17
FROM golang:1.20
WORKDIR /app
COPY --from=builder /replicator /app
COPY config.yaml /app
Expand Down
2 changes: 1 addition & 1 deletion podbuilder/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func newDefaults() *config.Defaults {
},
{
Language: "go",
BuildImage: "golang:1.17",
BuildImage: "golang:1.20",
RunImage: "gcr.io/grpc-fake-project/test-infra/go",
},
{
Expand Down

0 comments on commit 0ef5cfa

Please sign in to comment.