Skip to content

Commit

Permalink
chore(atlas): update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined committed Nov 8, 2024
1 parent 7f9ed58 commit c3292e5
Showing 1 changed file with 15 additions and 6 deletions.
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 "/tmp/mxbuild/modeler/mx 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:${version} bash -c "${args}"`);
console.log(`Module ${moduleName} created successfully.`);
}

Expand Down

0 comments on commit c3292e5

Please sign in to comment.