You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Earlier Docker versions are no longer compatible because they don't support multistage builds.
44
44
To use Docker versions below 20.10, download an earlier Mendix Docker Buildpack release, such as [v2.3.2](https://github.com/mendix/docker-mendix-buildpack/releases/tag/v2.3.2)
45
+
* Python 3
45
46
* For preparing, a local installation of `curl`
46
47
* For local testing, make sure you can run the [docker-compose command](https://docs.docker.com/compose/install/)
47
48
* A Mendix app based on Mendix 8 or a later version
@@ -86,7 +87,35 @@ When building the the `rootfs-builder.dockerfile` file, you can provide the foll
86
87
-**CF_BUILDPACK_URL** specifies the URL where the CF buildpack should be downloaded from (for example, a local mirror). Defaults to `https://github.com/mendix/cf-mendix-buildpack/releases/download/${CF_BUILDPACK}/cf-mendix-buildpack.zip`. Specifying **CF_BUILDPACK_URL** will override the version from **CF_BUILDPACK**.
87
88
-**BUILDPACK_XTRACE** can be used to enable CF Buildpack [debug logging](https://github.com/mendix/cf-mendix-buildpack#logging-and-debugging). Set this variable to `true` to enable debug logging.
88
89
89
-
### Compile an app
90
+
### Compile an MDA
91
+
92
+
If your app is a source MPK file, an MPR project directory or a compressed MDA file, it needs to be converted or compiled into a format supported by CF Buildpack - an extracted MDA file.
93
+
94
+
This feature is available in Docker Buildpack version v5.1.0 and later, and is intended to allow building Mendix 10 apps in custom CI/CD pipelines.
-**--source** is the path to the project source, such as a project directory (with a source MPR project) or an MPK file.
105
+
-**--destination** is a path to an empty directory where the script should output the build result. This directory will contain
106
+
* a compiled, extracted MDA file - in a subdirectory called `project`.
107
+
* a copy of the `Dockerfile` and the `scripts` directory.
108
+
-**--artifacts-repository** - an optional repository to cache MxBuild and Mono build images, for example `quay.io/example/mxbuild-artifacts`. By enabling this option, the `build.py` script will try to use a prebuilt image from this repository if available.
109
+
110
+
After the `build.py` script completes, you can proceed with building the app image by running the following command (see next section for more details):
where `<destination-dir>` is the same as used when calling `build.py`.
117
+
118
+
### Build an image from an MDA
90
119
91
120
Before running the container, it is necessary to build the image with your application. This buildpack contains Dockerfile with a script that will compile your application using [cf-mendix-buildpack](https://github.com/mendix/cf-mendix-buildpack/).
0 commit comments