Skip to content

Commit a90b378

Browse files
committed
updated base image with multi arch build
1 parent 681f554 commit a90b378

File tree

5 files changed

+29
-9
lines changed

5 files changed

+29
-9
lines changed

docker/base-image/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
FROM eclipse-temurin:11.0.15_10-jre-alpine@sha256:d401c4025eb1ead95cf2ca83cd5155bff8756527a4f4e9820570900e835f5ba4
2-
1+
FROM azul/zulu-openjdk-alpine:17.0.9-jre
32
LABEL maintainer="Flowable <[email protected]>"
43
RUN apk add --no-cache ttf-dejavu && rm -rf /var/cache/apk/*
54

docker/base-image/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flowable Docker base image
22

3-
Extends from eclipse-temurin:11.0.15_10-jdk-alpine
3+
Extends from azul/zulu-openjdk-alpine:17.0.9-jre
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

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22
set -eou pipefail
33

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

77
echo "Building image..."
8-
docker build -t ${IMAGE} -f Dockerfile .
8+
docker buildx create --name container --driver=docker-container
9+
docker buildx build --tag ${IMAGE} --platform linux/amd64,linux/arm64 --builder container --push .

docker/base-image/push.sh

+1-1
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:11.0.15"}
4+
readonly IMAGE=${1:-"flowable/flowable-jre:17.0.9"}
55
echo "Image name: ${IMAGE}"
66

77
echo "Pushing image..."

modules/flowable-app-rest/pom.xml

+23-3
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@
559559
<artifactId>jib-maven-plugin</artifactId>
560560
<configuration>
561561
<from>
562-
<image>flowable/flowable-jre:11.0.15</image>
562+
<image>flowable/flowable-jre:17.0.9</image>
563563
</from>
564564
<to>
565565
<image>flowable-rest</image>
@@ -601,7 +601,17 @@
601601
<artifactId>jib-maven-plugin</artifactId>
602602
<configuration>
603603
<from>
604-
<image>flowable/flowable-jre:11.0.15</image>
604+
<image>flowable/flowable-jre:17.0.9</image>
605+
<platforms>
606+
<platform>
607+
<architecture>amd64</architecture>
608+
<os>linux</os>
609+
</platform>
610+
<platform>
611+
<architecture>arm64</architecture>
612+
<os>linux</os>
613+
</platform>
614+
</platforms>
605615
</from>
606616
<to>
607617
<image>flowable/flowable-rest:${project.version}</image>
@@ -647,7 +657,17 @@
647657
<artifactId>jib-maven-plugin</artifactId>
648658
<configuration>
649659
<from>
650-
<image>flowable/flowable-jre:11.0.15</image>
660+
<image>flowable/flowable-jre:17.0.9</image>
661+
<platforms>
662+
<platform>
663+
<architecture>amd64</architecture>
664+
<os>linux</os>
665+
</platform>
666+
<platform>
667+
<architecture>arm64</architecture>
668+
<os>linux</os>
669+
</platform>
670+
</platforms>
651671
</from>
652672
<to>
653673
<image>flowable/flowable-rest:${project.version}</image>

0 commit comments

Comments
 (0)