buildpacks / pack

CLI for building apps using Cloud Native Buildpacks
https://buildpacks.io
Apache License 2.0
2.56k stars 286 forks source link

chore: updating docker base image to use go 1.22 #2171

Closed jjbustamante closed 4 months ago

jjbustamante commented 4 months ago

Summary

After releasing pack 0.34.0 our CI/CD workflow failed to publish in docker registry because our base image is using docker 1.20, this PR fixes that. Also, the CI/CD failed deploying to ubuntu lunar, but this version reached its end of life in January 25 2024, I am removing it because we don't need to support it anymore.

Output

Before

Error:

> [linux/amd64 builder 4/4] RUN make build:
14.04 go: downloading github.com/beorn7/perks v1.0.1
14.05 go: downloading github.com/cespare/xxhash/v2 v2.2.0
14.06 go: downloading github.com/prometheus/client_model v0.5.0
14.09 go: downloading github.com/prometheus/common v0.48.0
14.10 go: downloading github.com/prometheus/procfs v0.12.0
30.24 /go/pkg/mod/go.opentelemetry.io/otel@v1.25.0/attribute/set.go:7:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
30.24 note: imported by a module that requires go 1.21
30.24 /go/pkg/mod/go.opentelemetry.io/otel@v1.25.0/attribute/set.go:10:2: package slices is not in GOROOT (/usr/local/go/src/slices)
30.24 note: imported by a module that requires go 1.21
30.24 make: *** [Makefile:61: build] Error 1
------
Dockerfile:8
--------------------
   6 |     WORKDIR /app
   7 |     COPY . .
   8 | >>> RUN make build
   9 |     
  10 |     FROM ${base_image}
--------------------
ERROR: failed to solve: process "/bin/sh -c make build" did not complete successfully: exit code: 2
Error: Process completed with exit code 1.

After

Running docker build works

Resolves #2172 Resoves #2156