Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atlas Core: Updating changelogs #182

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/atlas-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [3.16.0] Atlas Core - 2024-11-8

### Changed

- We update atlas-core minimum version to SP 10.12.6.

## [3.15.0] Atlas Core - 2024-11-4

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions packages/atlas-core/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "atlas-core",
"moduleName": "Atlas Core",
"version": "3.15.0",
"version": "3.16.0",
"license": "Apache-2.0",
"copyright": "© Mendix Technology BV 2024. All rights reserved.",
"repository": {
"type": "git",
"url": "https://github.com/mendix/atlas.git"
},
"marketplace": {
"minimumMXVersion": "10.6.0.23934",
"minimumMXVersion": "10.12.6.46815",
"marketplaceId": 117187
},
"testProject": {
"githubUrl": "https://github.com/mendix/Atlas-Design-System",
"branchName": "lts/9.24",
"mxVersion": "10.5.0.21627"
"branchName": "mts/10.12",
"mxVersion": "10.12.6.46815"
},
"scripts": {
"build:module": "ts-node ./scripts/build.ts build",
Expand Down
1 change: 1 addition & 0 deletions packages/atlas-web-content/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Changed

- We update Pageheader_WithSearch building block to use combobox instead of Dropdown to support modern client.
- We updated Atlas Web Content minimum version to SP 10.12.6.

## [3.6.0] Atlas Web Content - 2024-6-11

Expand Down
8 changes: 4 additions & 4 deletions packages/atlas-web-content/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "atlas-web-content",
"moduleName": "Atlas Web Content",
"version": "3.6.1",
"version": "3.7.0",
"license": "Apache-2.0",
"copyright": "© Mendix Technology BV 2024. All rights reserved.",
"repository": {
"type": "git",
"url": "https://github.com/mendix/atlas.git"
},
"marketplace": {
"minimumMXVersion": "10.6.0.23934",
"minimumMXVersion": "10.12.6.46815",
"marketplaceId": 117183
},
"testProject": {
"githubUrl": "https://github.com/mendix/Atlas-Design-System",
"branchName": "lts/9.24",
"mxVersion": "10.5.0.21627"
"branchName": "mts/10.12",
"mxVersion": "10.12.6.46815"
},
"scripts": {
"build:module": "ts-node ./scripts/build.ts build",
Expand Down
4 changes: 2 additions & 2 deletions packages/atlas/scripts/e2e.playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function main() {
if (!existingImages) {
console.log(`Creating new mxbuild docker image...`);
execSync(
`docker build --platform=linux/amd64 -f ${join(__dirname, "mxbuild.Dockerfile")} ` +
`docker build -f ${join(__dirname, "mxbuild.Dockerfile")} ` +
`--build-arg MENDIX_VERSION=${mendixVersion} ` +
`-t mxbuild:${mendixVersion} ${__dirname}`,
{ stdio: "inherit" }
Expand All @@ -66,7 +66,7 @@ async function main() {
if (!existingRuntimeImages) {
console.log(`Creating new runtime docker image...`);
execSync(
`docker build --platform=linux/amd64 -f ${join(__dirname, "runtime.Dockerfile")} ` +
`docker build -f ${join(__dirname, "runtime.Dockerfile")} ` +
`--build-arg MENDIX_VERSION=${mendixVersion} ` +
`-t mxruntime:${mendixVersion} ${__dirname}`,
{ stdio: "inherit" }
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/scripts/m2ee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ m2ee:
admin_pass: Password1!
runtime_port: 8080
runtime_listen_addresses: "*"
javaopts: ["-Dfile.encoding=UTF-8", "-XX:MaxPermSize=128M", "-Xmx512M", "-Xms512M", "-Djava.io.tmpdir=/source/tests/testProject/deployment/data/tmp"]
javaopts: ["-Dfile.encoding=UTF-8", "-Xmx512M", "-Xms512M", "-Djava.io.tmpdir=/source/tests/testProject/deployment/data/tmp"]
javabin: /usr/bin/java
pidfile: /var/run/m2ee.pid
mxruntime:
Expand Down
45 changes: 27 additions & 18 deletions packages/atlas/scripts/mxbuild.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
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} 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 && \
\
echo "Downloading mxbuild ${MENDIX_VERSION}..." && \
wget -q https://cdn.mendix.com/runtime/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 && \
\
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 && \
chmod +x /bin/mx
echo "/tmp/mxbuild/modeler/mx \$@" >>/bin/mx && \
chmod +x /bin/mx
2 changes: 1 addition & 1 deletion packages/atlas/scripts/runtime.Dockerfile
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

Expand Down
43 changes: 26 additions & 17 deletions scripts/mxbuild.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
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} 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 && \
\
echo "Downloading mxbuild ${MENDIX_VERSION}..." && \
wget -q https://cdn.mendix.com/runtime/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 && \
\
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
21 changes: 15 additions & 6 deletions scripts/release/module-automation/commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,21 @@ async function createModuleMpkInDocker(sourceDir, moduleName, mendixVersion, exc

// Build testProject via mxbuild
const projectFile = basename((await getFiles(sourceDir, [`.mpr`]))[0]);
await execShellCommand(
`docker run -t -v ${sourceDir}:/source ` +
`--rm mxbuild:${mendixVersion} bash -c "dotnet /tmp/mxbuild/modeler/mx.dll create-module-package ${
excludeFilesRegExp ? `--exclude-files='${excludeFilesRegExp}'` : ""
} /source/${projectFile} ${moduleName}"`
);

const args = [
// update widgets
"mx",
"update-widgets",
"--loose-version-check",
`/source/${projectFile}`,
"&&",
"/tmp/mxbuild/modeler/mx create-module-package",
excludeFilesRegExp ? `--exclude-files='${excludeFilesRegExp}'` : "",
`/source/${projectFile}`,
moduleName
].join(" ");

await execShellCommand(`docker run -v ${sourceDir}:/source --rm mxbuild:${mendixVersion} bash -c "${args}"`);
console.log(`Module ${moduleName} created successfully.`);
}

Expand Down
Loading