Skip to content

Commit

Permalink
feat(debian): Move to bookworm. (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
gounthar committed Sep 13, 2023
1 parent 1975b71 commit bf87234
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
6 changes: 3 additions & 3 deletions debian/21/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BOOKWORM_TAG=20230904
FROM debian:bookworm-"${BOOKWORM_TAG}"-slim as jre-build
ARG DEBIAN_RELEASE=bookworm-20230904
FROM debian:"${DEBIAN_RELEASE}"-slim as jre-build
ARG JAVA_VERSION
ARG TARGETPLATFORM

Expand Down Expand Up @@ -32,7 +32,7 @@ RUN if test "${TARGETPLATFORM}" != 'linux/arm/v7'; then \
cp -r "/opt/jdk-${JAVA_VERSION}" /javaruntime; \
fi

FROM debian:bookworm-"${BOOKWORM_TAG}" AS build
FROM debian:"${DEBIAN_RELEASE}" AS build

ARG user=jenkins
ARG group=jenkins
Expand Down
5 changes: 3 additions & 2 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG DEBIAN_RELEASE=bookworm-20230904
ARG JAVA_VERSION=17.0.8.1_1
FROM eclipse-temurin:"${JAVA_VERSION}"-jdk-focal AS jre-build

Expand Down Expand Up @@ -50,7 +50,8 @@ RUN if test "${TARGETPLATFORM}" != 'linux/arm/v7'; then \
else cp -r /opt/java/openjdk /javaruntime; \
fi

FROM debian:bullseye-20230904 AS build

FROM debian:"${DEBIAN_RELEASE}"-slim AS build

ARG user=jenkins
ARG group=jenkins
Expand Down
19 changes: 13 additions & 6 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ variable "ALPINE_SHORT_TAG" {
default = regex_replace(ALPINE_FULL_TAG, "\\.\\d+$", "")
}

variable "DEBIAN_RELEASE" {
default = "bookworm-20230904"
}

variable "JAVA11_VERSION" {
default = "11.0.20.1_1"
}
Expand Down Expand Up @@ -170,8 +174,9 @@ target "debian_jdk11" {
dockerfile = "debian/Dockerfile"
context = "."
args = {
JAVA_VERSION = JAVA11_VERSION
VERSION = REMOTING_VERSION
JAVA_VERSION = JAVA11_VERSION
VERSION = REMOTING_VERSION
DEBIAN_RELEASE = DEBIAN_RELEASE
}
tags = [
equal(ON_TAG, "true") ? "${REGISTRY}/${JENKINS_REPO}:${REMOTING_VERSION}-${BUILD_NUMBER}" : "",
Expand All @@ -189,8 +194,9 @@ target "debian_jdk17" {
dockerfile = "debian/Dockerfile"
context = "."
args = {
JAVA_VERSION = JAVA17_VERSION
VERSION = REMOTING_VERSION,
JAVA_VERSION = JAVA17_VERSION
VERSION = REMOTING_VERSION
DEBIAN_RELEASE = DEBIAN_RELEASE
}
tags = [
equal(ON_TAG, "true") ? "${REGISTRY}/${JENKINS_REPO}:${REMOTING_VERSION}-${BUILD_NUMBER}-jdk17" : "",
Expand All @@ -207,8 +213,9 @@ target "debian_jdk21" {
dockerfile = "debian/21/Dockerfile"
context = "."
args = {
JAVA_VERSION = JAVA21_VERSION
VERSION = REMOTING_VERSION,
JAVA_VERSION = JAVA21_VERSION
VERSION = REMOTING_VERSION
DEBIAN_RELEASE = DEBIAN_RELEASE
}
tags = [
equal(ON_TAG, "true") ? "${REGISTRY}/${JENKINS_REPO}:${REMOTING_VERSION}-${BUILD_NUMBER}-jdk21-preview" : "",
Expand Down

0 comments on commit bf87234

Please sign in to comment.