Skip to content

Commit

Permalink
docker: publish jdk17 images
Browse files Browse the repository at this point in the history
This also updates the base image to Ubuntu 24.04 LTS.

The build has been updated to use the suffix jdk17 for these images:

killbill/base:jdk17
killbill/killbill:jdk17
killbill/kaui:jdk17

killbill/killbill:0.24.10-jdk17
killbill/kaui:3.0.9-jdk17

Signed-off-by: Pierre-Alexandre Meyer <[email protected]>
  • Loading branch information
pierre committed Sep 7, 2024
1 parent 22f7822 commit 2adb0e0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if [[ ${{ github.event.inputs.snapshot_only }} = "true" ]]; then
TAG="killbill/base:latest-$(git rev-parse --short "$GITHUB_SHA")"
else
TAG="killbill/base:latest"
TAG="killbill/base:jdk17"
fi
cd docker/templates/base/latest
docker buildx build --push --platform=linux/arm64,linux/amd64 --no-cache -t $TAG -f Dockerfile --build-arg KILLBILL_CLOUD_VERSION=${{ github.event.inputs.cloud_version }} --build-arg NEXUS_REPOSITORY=${{ github.event.inputs.nexus_repository }} .
Expand All @@ -60,10 +60,10 @@ jobs:
make -e TARGET=kaui -e PARENT_VERSION=latest-$(git rev-parse --short "$GITHUB_SHA") -e VERSION=latest -e IMAGE=killbill/kaui:latest-$(git rev-parse --short "$GITHUB_SHA") multi-arch
make -e TARGET=killbill -e PARENT_VERSION=latest-$(git rev-parse --short "$GITHUB_SHA") -e VERSION=latest -e IMAGE=killbill/killbill:latest-$(git rev-parse --short "$GITHUB_SHA") multi-arch
else
make -e TARGET=kaui -e VERSION=latest multi-arch
make -e TARGET=killbill -e VERSION=latest multi-arch
make -e TARGET=mariadb VERSION=$CURRENT_LTS multi-arch
make -e TARGET=postgresql VERSION=$CURRENT_LTS multi-arch
make -e TARGET=kaui -e PARENT_VERSION=jdk17 -e VERSION=latest multi-arch
make -e TARGET=killbill -e PARENT_VERSION=jdk17 -e VERSION=latest multi-arch
#make -e TARGET=mariadb VERSION=$CURRENT_LTS multi-arch
#make -e TARGET=postgresql VERSION=$CURRENT_LTS multi-arch
fi
- name: Build and push killbill image
if: github.event.inputs.killbill_version != ''
Expand All @@ -72,7 +72,7 @@ jobs:
if [[ ${{ github.event.inputs.snapshot_only }} = "true" ]]; then
make -e TARGET=killbill -e PARENT_VERSION=latest-$(git rev-parse --short "$GITHUB_SHA") -e VERSION=${{ github.event.inputs.killbill_version }} -e IMAGE=killbill/killbill:${{ github.event.inputs.killbill_version }}-$(git rev-parse --short "$GITHUB_SHA") multi-arch
else
make -e TARGET=killbill -e VERSION=${{ github.event.inputs.killbill_version }} multi-arch
make -e TARGET=killbill -e PARENT_VERSION=jdk17 -e VERSION=${{ github.event.inputs.killbill_version }} multi-arch
fi
- name: Build and push kaui image
if: github.event.inputs.kaui_version != ''
Expand All @@ -81,5 +81,5 @@ jobs:
if [[ ${{ github.event.inputs.snapshot_only }} = "true" ]]; then
make -e TARGET=kaui -e PARENT_VERSION=latest-$(git rev-parse --short "$GITHUB_SHA") -e VERSION=${{ github.event.inputs.kaui_version }} -e IMAGE=killbill/kaui:${{ github.event.inputs.kaui_version }}-$(git rev-parse --short "$GITHUB_SHA") multi-arch
else
make -e TARGET=kaui -e VERSION=${{ github.event.inputs.kaui_version }} multi-arch
make -e TARGET=kaui -e PARENT_VERSION=jdk17 -e VERSION=${{ github.event.inputs.kaui_version }} multi-arch
fi
4 changes: 2 additions & 2 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ PARENT_VERSION?=latest

VERSION?=latest
ifeq ($(VERSION),latest)
IMAGE=killbill/$(TARGET)
IMAGE=killbill/$(TARGET):jdk17
TEMPLATE=templates/$(TARGET)/latest
else
IMAGE=killbill/$(TARGET):$(VERSION)
IMAGE=killbill/$(TARGET):$(VERSION)-jdk17
TEMPLATE=templates/$(TARGET)/tagged
endif

Expand Down
8 changes: 4 additions & 4 deletions docker/templates/base/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ubuntu:20.04 as builder-base
FROM ubuntu:24.04 AS builder-base
LABEL maintainer="[email protected]"

USER root

ENV LC_CTYPE=en_US.UTF-8
ENV LC_ALL=C
ENV LC_ALL=C.UTF-8
ENV LANG=en_US.UTF-8
ENV PYTHONIOENCODING=utf8

Expand All @@ -24,7 +24,7 @@ RUN apt-get update && \
libapr1 \
mysql-client \
net-tools \
openjdk-11-jdk-headless \
openjdk-17-jdk-headless \
python3-lxml \
sudo \
telnet \
Expand All @@ -34,7 +34,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*

# Configure default JAVA_HOME path
RUN ln -s java-11-openjdk-$(dpkg --print-architecture) /usr/lib/jvm/default-java
RUN ln -s java-17-openjdk-$(dpkg --print-architecture) /usr/lib/jvm/default-java
ENV JAVA_HOME=/usr/lib/jvm/default-java
ENV JSSE_HOME=$JAVA_HOME/jre/

Expand Down
2 changes: 1 addition & 1 deletion docker/templates/base/latest/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# killbill/base image

Shared base image with Tomcat, JDK and KPM inside Ubuntu 20.04 LTS. It also contains Ansible and our playbooks from https://github.com/killbill/killbill-cloud.
Shared base image with Tomcat, JDK and KPM inside Ubuntu 24.04 LTS. It also contains Ansible and our playbooks from https://github.com/killbill/killbill-cloud.

To build this docker image:

Expand Down

0 comments on commit 2adb0e0

Please sign in to comment.