by Ximeng@Mendix

🌐 δΈ­ζ–‡

πŸ“œ Altered scripts

docker-mendix-buildpack-offline.zip

cf-mendix-buildpack-4.15.4-offline.zip

🐾 Build steps

  1. Pull the following 2 images first:

    1. mendix/rootfs:bionic
    2. mendix/rootfs:ubi8
  2. Unzip docker-mendix-buildpack-offline.zip

  3. Unzip and copy the content of cf-mendix-buildpack-4.15.4-offline.zip into the docker buildpack folder

  4. Copy project directory into {docker-mendix-buildpack-offline}/project

    <aside> ℹ️ You may remove the following folders from the copied project structure: deployment, data-snapshot.zip, any release folder containing .mda packages, and all the version control files (.git or .svn)

    </aside>

  5. Pre-download dependencies from mendix cdn

    1. https://cdn.mendix.com/mx-buildpack/mono/mono-5.20.1.27-mx-ubuntu-bionic.tar.gz
    2. https://cdn.mendix.com/runtime/mxbuild-8.18.5.18651.tar.gz
    3. https://cdn.mendix.com/mx-buildpack/AdoptOpenJDK-jdk-11.0.10-linux-x64.tar.gz
    4. https://cdn.mendix.com/mx-buildpack/AdoptOpenJDK-jre-11.0.10-linux-x64.tar.gz
    5. https://cdn.mendix.com/mx-buildpack/java-keyutil/keyutil-0.4.0.jar
    6. https://cdn.mendix.com/runtime/mendix-8.18.5.18651.tar.gz

    <aside> ☝ For mxbuild & mx runtime, you need to find out the exact build version of your Mendix Studio Pro used for your project.

    </aside>

  6. Put all 6 files into {docker_mendix_buildpack_dir}/dependencies

  7. Then run:

$ docker build --build-arg BUILD_PATH="project" -f Dockerfile_offline --progress plain -t blank .

πŸ”¬ Process anatomy

🐞 Debug traces

Online build traces

Offline build traces