Skip to content

Commit b842f81

Browse files
authored
Update base image jre 21 (#4099)
Add workflow for base image build and push
1 parent 739cb41 commit b842f81

File tree

8 files changed

+73
-29
lines changed

8 files changed

+73
-29
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Flowable Base Image Multi-Arch Build and Push
2+
3+
on:
4+
schedule:
5+
- cron: "0 1 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Log into dockerhub
17+
uses: docker/login-action@v1
18+
with:
19+
username: ${{ secrets.DOCKER_USER }}
20+
password: ${{ secrets.DOCKER_PASSWORD }}
21+
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Build and push
29+
uses: docker/build-push-action@v6
30+
with:
31+
context: ./docker/base-image
32+
platforms: linux/amd64,linux/arm64
33+
push: true
34+
tags: flowable/flowable-jre-test:21
35+
36+
- name: Scan image
37+
uses: anchore/scan-action@v6
38+
with:
39+
image: flowable/flowable-jre-test:21
40+
output-format: 'table'
41+
severity-cutoff: 'high'
42+

.github/workflows/docker-release-with-latest.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,27 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v4
1212

13-
- name: Set up JDK 17
13+
- name: Set up JDK 21
1414
uses: actions/setup-java@v3
1515
with:
1616
distribution: 'temurin'
17-
java-version: '17'
17+
java-version: '21'
1818

1919
- name: Get current project meta
2020
id: meta
21-
run: echo "::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
21+
run: echo "::set-output name=version::$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)"
2222

2323
- name: Build Docker images with Maven
2424
run: |
25-
mvn clean package -B -Dstyle.color=always \
25+
./mvnw clean package -B -Dstyle.color=always \
2626
-P dockerDeps,dockerPublishWithLatest \
2727
-pl :flowable-app-rest \
2828
-Ddocker.publisher.user=${{ secrets.DOCKER_USER }} \
29-
-Ddocker.publisher.password=${{ secrets.DOCKER_PASSWORD }}
29+
-Ddocker.publisher.password=${{ secrets.DOCKER_PASSWORD }} \
30+
-B -V --no-transfer-progress
3031
31-
- name: Install cosign
32-
uses: sigstore/cosign-installer@d6a3abf1bdea83574e28d40543793018b6035605
33-
with:
34-
cosign-release: 'v1.7.1'
32+
- name: Install Cosign
33+
uses: sigstore/[email protected]
3534

3635
- name: Write signing key to disk
3736
run: echo "${{ secrets.SIGNING_SECRET }}" > cosign.key
@@ -49,8 +48,10 @@ jobs:
4948
cosign sign --key cosign.key \
5049
-a "repo=${{ github.repository }}" \
5150
-a "ref=${{ github.sha }}" \
52-
flowable/flowable-rest:${{ steps.meta.outputs.version }}
51+
flowable/flowable-rest:${{ steps.meta.outputs.version }} \
52+
-y
5353
cosign sign --key cosign.key \
5454
-a "repo=${{ github.repository }}" \
5555
-a "ref=${{ github.sha }}" \
56-
flowable/flowable-rest:latest
56+
flowable/flowable-rest:latest \
57+
-y

.github/workflows/docker-release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,27 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v4
1212

13-
- name: Set up JDK 17
13+
- name: Set up JDK 21
1414
uses: actions/setup-java@v3
1515
with:
1616
distribution: 'temurin'
17-
java-version: '17'
17+
java-version: '21'
1818

1919
- name: Get current project meta
2020
id: meta
21-
run: echo "::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
21+
run: echo "::set-output name=version::$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)"
2222

2323
- name: Build Docker images with Maven
2424
run: |
25-
mvn clean package -B -Dstyle.color=always \
25+
./mvnw clean package -B -Dstyle.color=always \
2626
-P dockerDeps,dockerPublish \
2727
-pl :flowable-app-rest \
2828
-D docker.publisher.user=${{ secrets.DOCKER_USER }} \
29-
-D docker.publisher.password=${{ secrets.DOCKER_PASSWORD }}
29+
-D docker.publisher.password=${{ secrets.DOCKER_PASSWORD }} \
30+
-B -V --no-transfer-progress
3031
31-
- name: Install cosign
32-
uses: sigstore/cosign-installer@d6a3abf1bdea83574e28d40543793018b6035605
33-
with:
34-
cosign-release: 'v1.7.1'
32+
- name: Install Cosign
33+
uses: sigstore/[email protected]
3534

3635
- name: Write signing key to disk
3736
run: echo "${{ secrets.SIGNING_SECRET }}" > cosign.key
@@ -49,4 +48,5 @@ jobs:
4948
cosign sign --key cosign.key \
5049
-a "repo=${{ github.repository }}" \
5150
-a "ref=${{ github.sha }}" \
52-
flowable/flowable-rest:${{ steps.meta.outputs.version }}
51+
flowable/flowable-rest:${{ steps.meta.outputs.version }} \
52+
-y

docker/base-image/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
FROM azul/zulu-openjdk-alpine:17.0.9-jre
1+
FROM azul/zulu-openjdk-alpine:21-jre-latest
22
LABEL maintainer="Flowable <[email protected]>"
3-
RUN apk add --no-cache ttf-dejavu && rm -rf /var/cache/apk/*
3+
4+
RUN apk add --no-cache fontconfig ttf-dejavu && rm -rf /var/cache/apk/*
45

56
RUN addgroup -S flowable && adduser -S flowable -G flowable
67

docker/base-image/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flowable Docker base image
22

3-
Extends from azul/zulu-openjdk-alpine:17.0.9-jre
3+
Extends from azul/zulu-openjdk-alpine:21-jre-latest
44

55
Adds `flowable:flowable` user which can be used to 'step down' from root when executing Flowable applications.
66

docker/base-image/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -eou pipefail
33

4-
readonly IMAGE=${1:-"flowable/flowable-jre:17.0.9"}
4+
readonly IMAGE=${1:-"flowable/flowable-jre:21"}
55
echo "Image name: ${IMAGE}"
66

77
echo "Building image..."

docker/base-image/push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -eou pipefail
33

4-
readonly IMAGE=${1:-"flowable/flowable-jre:17.0.9"}
4+
readonly IMAGE=${1:-"flowable/flowable-jre:21"}
55
echo "Image name: ${IMAGE}"
66

77
echo "Pushing image..."

modules/flowable-app-rest/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@
531531
<artifactId>jib-maven-plugin</artifactId>
532532
<configuration>
533533
<from>
534-
<image>flowable/flowable-jre:17.0.9</image>
534+
<image>flowable/flowable-jre:21</image>
535535
</from>
536536
<to>
537537
<image>flowable-rest</image>
@@ -573,7 +573,7 @@
573573
<artifactId>jib-maven-plugin</artifactId>
574574
<configuration>
575575
<from>
576-
<image>flowable/flowable-jre:17.0.9</image>
576+
<image>flowable/flowable-jre:21</image>
577577
<platforms>
578578
<platform>
579579
<architecture>amd64</architecture>
@@ -629,7 +629,7 @@
629629
<artifactId>jib-maven-plugin</artifactId>
630630
<configuration>
631631
<from>
632-
<image>flowable/flowable-jre:17.0.9</image>
632+
<image>flowable/flowable-jre:21</image>
633633
<platforms>
634634
<platform>
635635
<architecture>amd64</architecture>

0 commit comments

Comments
 (0)