Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

feat(Linux): switch supported architectures to GA Temurin jdk21 images #436

Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=3180.v3dd999d24861-1
ARG version=3180.v3dd999d24861-2
ARG JAVA_MAJOR_VERSION=17
FROM jenkins/agent:"${version}"-alpine-jdk"${JAVA_MAJOR_VERSION}"

Expand Down
35 changes: 0 additions & 35 deletions alpine/Dockerfile-jdk21

This file was deleted.

2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Param(
[String] $Target = "build",
[String] $Build = '',
[String] $VersionTag = 'NEXT_TAG_VERSION',
[String] $ParentImageVersion = '3180.v3dd999d24861-1',
[String] $ParentImageVersion = '3180.v3dd999d24861-2',

[switch] $PushVersions = $false
)
Expand Down
2 changes: 1 addition & 1 deletion debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG version=3180.v3dd999d24861-1
ARG version=3180.v3dd999d24861-2
ARG JAVA_MAJOR_VERSION=17
FROM jenkins/agent:"${version}"-jdk"${JAVA_MAJOR_VERSION}"

Expand Down
2 changes: 1 addition & 1 deletion debian/Dockerfile-jdk21 → debian/preview/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG version=3180.v3dd999d24861-1
ARG version=3180.v3dd999d24861-2
lemeurherve marked this conversation as resolved.
Show resolved Hide resolved
ARG JAVA_MAJOR_VERSION=21
FROM jenkins/agent:"${version}"-jdk"${JAVA_MAJOR_VERSION}-preview"

Expand Down
46 changes: 37 additions & 9 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ group "linux" {
"debian_jdk11",
"debian_jdk17",
"debian_jdk21",
"debian_jdk21_preview",
]
}

Expand All @@ -15,18 +16,30 @@ group "linux-arm64" {
"debian_jdk17",
"debian_jdk21",
"alpine_jdk21",
"debian_jdk21_preview",
]
}

group "linux-arm32" {
targets = [
"debian_jdk11",
"debian_jdk17",
"debian_jdk21_preview",
]
}

group "linux-s390x" {
targets = []
targets = [
"debian_jdk11",
"debian_jdk21_preview",
]
}

group "linux-ppc64le" {
targets = [
"debian_jdk11",
"debian_jdk17",
"debian_jdk21",
"debian_jdk21_preview",
]
}

Expand All @@ -37,7 +50,7 @@ variable "IMAGE_TAG" {

#### This is for the "parent" image version to use (jenkins/agent:<PARENT_IMAGE_VERSION>-<base-os>)
variable "PARENT_IMAGE_VERSION" {
default = "3180.v3dd999d24861-1"
default = "3180.v3dd999d24861-2"
}

variable "REGISTRY" {
Expand Down Expand Up @@ -86,16 +99,16 @@ target "alpine_jdk17" {
}

target "alpine_jdk21" {
dockerfile = "alpine/Dockerfile-jdk21"
dockerfile = "alpine/Dockerfile"
context = "."
args = {
JAVA_MAJOR_VERSION = "21"
version = "${PARENT_IMAGE_VERSION}"
}
tags = [
equal(ON_TAG, "true") ? "${REGISTRY}/${JENKINS_REPO}:${PARENT_IMAGE_VERSION}-alpine-jdk21-preview" : "",
"${REGISTRY}/${JENKINS_REPO}:alpine-jdk21-preview",
"${REGISTRY}/${JENKINS_REPO}:latest-alpine-jdk21-preview",
equal(ON_TAG, "true") ? "${REGISTRY}/${JENKINS_REPO}:${PARENT_IMAGE_VERSION}-alpine-jdk21" : "",
"${REGISTRY}/${JENKINS_REPO}:alpine-jdk21",
"${REGISTRY}/${JENKINS_REPO}:latest-alpine-jdk21",
]
platforms = ["linux/amd64", "linux/arm64"]
}
Expand Down Expand Up @@ -133,7 +146,22 @@ target "debian_jdk17" {
}

target "debian_jdk21" {
dockerfile = "debian/Dockerfile-jdk21"
dockerfile = "debian/Dockerfile"
context = "."
args = {
JAVA_MAJOR_VERSION = "21"
version = "${PARENT_IMAGE_VERSION}"
}
tags = [
equal(ON_TAG, "true") ? "${REGISTRY}/${JENKINS_REPO}:${PARENT_IMAGE_VERSION}-jdk21" : "",
"${REGISTRY}/${JENKINS_REPO}:jdk21",
"${REGISTRY}/${JENKINS_REPO}:latest-jdk21",
]
platforms = ["linux/amd64", "linux/arm64"]
}

target "debian_jdk21_preview" {
dockerfile = "debian/preview/Dockerfile"
context = "."
args = {
JAVA_MAJOR_VERSION = "21"
Expand All @@ -144,5 +172,5 @@ target "debian_jdk21" {
"${REGISTRY}/${JENKINS_REPO}:jdk21-preview",
"${REGISTRY}/${JENKINS_REPO}:latest-jdk21-preview",
]
platforms = ["linux/amd64", "linux/arm64", "linux/ppc64le"]
platforms = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x", "linux/arm/v7"]
}
2 changes: 1 addition & 1 deletion windows/nanoserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=3180.v3dd999d24861-1
ARG version=3180.v3dd999d24861-2
ARG JAVA_MAJOR_VERSION=17
ARG WINDOWS_VERSION_TAG=1809
FROM jenkins/agent:"${version}"-jdk"${JAVA_MAJOR_VERSION}"-nanoserver-"${WINDOWS_VERSION_TAG}"
Expand Down
2 changes: 1 addition & 1 deletion windows/windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=3180.v3dd999d24861-1
ARG version=3180.v3dd999d24861-2
ARG JAVA_MAJOR_VERSION=17
ARG WINDOWS_VERSION_TAG=ltsc2019
FROM jenkins/agent:"${version}"-jdk"${JAVA_MAJOR_VERSION}"-windowsservercore-"${WINDOWS_VERSION_TAG}"
Expand Down