-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Mendix 10.11 and enable mxbuild multi-arch (#1127)
- Loading branch information
Showing
8 changed files
with
40 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
FROM mcr.microsoft.com/dotnet/runtime:6.0 | ||
FROM --platform=$BUILDPLATFORM eclipse-temurin:17-jdk-jammy | ||
|
||
ARG MENDIX_VERSION | ||
ARG BUILDPLATFORM | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
RUN \ | ||
echo "Installing Java..." && \ | ||
apt-get -qq update && \ | ||
apt-get -qq install -y wget libgdiplus && \ | ||
wget -q https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz -O /tmp/openjdk.tar.gz && \ | ||
mkdir /usr/lib/jvm && \ | ||
tar xfz /tmp/openjdk.tar.gz --directory /usr/lib/jvm && \ | ||
rm /tmp/openjdk.tar.gz && \ | ||
\ | ||
echo "Downloading mxbuild ${MENDIX_VERSION}..." && \ | ||
wget -q https://cdn.mendix.com/runtime/net6-mxbuild-${MENDIX_VERSION}.tar.gz -O /tmp/mxbuild.tar.gz && \ | ||
mkdir /tmp/mxbuild && \ | ||
tar xfz /tmp/mxbuild.tar.gz --directory /tmp/mxbuild && \ | ||
rm /tmp/mxbuild.tar.gz && \ | ||
echo "Downloading mxbuild ${MENDIX_VERSION} and docker building for ${BUILDPLATFORM}..." \ | ||
&& case "${BUILDPLATFORM}" in \ | ||
linux/arm64) \ | ||
BINARY_URL="https://cdn.mendix.com/runtime/arm64-mxbuild-${MENDIX_VERSION}.tar.gz"; \ | ||
;; \ | ||
linux/amd64) \ | ||
BINARY_URL="https://cdn.mendix.com/runtime/mxbuild-${MENDIX_VERSION}.tar.gz"; \ | ||
;; \ | ||
*) \ | ||
echo "Unsupported architecture: ${BUILDPLATFORM}" >&2; \ | ||
exit 1; \ | ||
;; \ | ||
esac \ | ||
&& echo "Downloading from: ${BINARY_URL}" \ | ||
&& wget -q "${BINARY_URL}" -O /tmp/mxbuild.tar.gz \ | ||
&& mkdir /tmp/mxbuild \ | ||
&& tar xfz /tmp/mxbuild.tar.gz --directory /tmp/mxbuild \ | ||
&& rm /tmp/mxbuild.tar.gz && \ | ||
\ | ||
apt-get -qq remove -y wget && \ | ||
apt-get update -qqy && \ | ||
apt-get install -qqy libicu70 && \ | ||
apt-get -qqy remove --auto-remove wget && \ | ||
apt-get clean && \ | ||
\ | ||
echo "#!/bin/bash -x" >/bin/mxbuild && \ | ||
echo "dotnet /tmp/mxbuild/modeler/mxbuild.dll --java-home=/usr/lib/jvm/jdk-11.0.2 --java-exe-path=/usr/lib/jvm/jdk-11.0.2/bin/java \$@" >>/bin/mxbuild && \ | ||
echo "/tmp/mxbuild/modeler/mxbuild --java-home=/opt/java/openjdk --java-exe-path=/opt/java/openjdk/bin/java \$@" >>/bin/mxbuild && \ | ||
chmod +x /bin/mxbuild && \ | ||
\ | ||
echo "#!/bin/bash -x" >/bin/mx && \ | ||
echo "dotnet /tmp/mxbuild/modeler/mx.dll \$@" >>/bin/mx && \ | ||
echo "/tmp/mxbuild/modeler/mx \$@" >>/bin/mx && \ | ||
chmod +x /bin/mx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM adoptopenjdk/openjdk11:jdk-11.0.19_7-slim | ||
FROM eclipse-temurin:17-jdk-jammy | ||
|
||
ARG MENDIX_VERSION | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
FROM adoptopenjdk/openjdk11:jdk-11.0.19_7-slim | ||
|
||
ARG MENDIX_VERSION | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"latest": "10.8.1.29725", | ||
"latest": "10.12.0.38909", | ||
"9": "9.24.0.2965", | ||
"8": "8.18.24.2858" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters