Skip to content

Commit bfab50f

Browse files
committed
Use already pre-installed Java 21 on Ubuntu
1 parent e715182 commit bfab50f

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/scripts/mxbuild.Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@ FROM mcr.microsoft.com/dotnet/runtime:8.0
22
ARG MENDIX_VERSION
33

44
RUN \
5-
echo "Installing Java 21..." && \
5+
echo "Installing required packages..." && \
66
apt-get -qq update && \
7-
apt-get -qq install -y wget libgdiplus && \
8-
wget -q https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz -O /tmp/openjdk.tar.gz || { echo "Failed to download Java 21"; exit 1; } && \
9-
mkdir -p /usr/lib/jvm && \
10-
tar xfz /tmp/openjdk.tar.gz --directory /usr/lib/jvm || { echo "Failed to extract Java 21"; exit 1; } && \
11-
ls /usr/lib/jvm && \
12-
mv /usr/lib/jvm/jdk-21* /usr/lib/jvm/java-21-openjdk && \
13-
rm /tmp/openjdk.tar.gz
7+
apt-get -qq install -y wget libgdiplus openjdk-21-jdk
148

159
RUN \
1610
echo "Downloading mxbuild ${MENDIX_VERSION}..." && \
@@ -33,4 +27,5 @@ RUN \
3327
echo "dotnet /tmp/mxbuild/modeler/mx.dll \$@" >>/bin/mx && \
3428
chmod +x /bin/mx
3529

36-
ENV M2EE_TOOLS_JAR=/tmp/mxbuild/modeler/tools/m2ee-tools.jar
30+
ENV M2EE_TOOLS_JAR=/tmp/mxbuild/modeler/tools/m2ee-tools.jar
31+
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk

maestro/helpers/compare_screenshots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* eslint-disable @typescript-eslint/explicit-function-return-type */
21
/* eslint-disable @typescript-eslint/no-var-requires */
2+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
33
/* eslint-disable prettier/prettier */
44
const fs = require('fs');
55
const path = require('path');

0 commit comments

Comments
 (0)