Skip to content

Commit

Permalink
build: update builder to Ubuntu 22.04 based builder-jammy-tiny
Browse files Browse the repository at this point in the history
Note: Images generated with this builder (via `./gradlew bootBuildImage`)
currently fail to run on M2 Macs with the following error message:

`rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2`

However, due to the high number of CVEs detected in images created with
`builder-jammy-base`, we switch to `builder-jammy-tiny`.
  • Loading branch information
kaibernhard committed Nov 3, 2023
1 parent cb9a729 commit 79164d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ tasks {
val containerImageVersion = System.getenv("CONTAINER_IMAGE_VERSION") ?: "latest"

imageName.set("$containerRegistry/$containerImageName:$containerImageVersion")
builder.set("paketobuildpacks/builder-jammy-base")
builder.set("paketobuildpacks/builder-jammy-tiny")
publish.set(false)

docker {
Expand Down

0 comments on commit 79164d2

Please sign in to comment.