Skip to content

Commit f750858

Browse files
authored
Merge pull request #149 from mendix/maintenance-update
Bumped CF Buildpack version.
2 parents def27d7 + 3210a22 commit f750858

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FROM ${BUILDER_ROOTFS_IMAGE} AS builder
1313
ARG BUILD_PATH=project
1414
ARG DD_API_KEY
1515
# CF buildpack version
16-
ARG CF_BUILDPACK=v4.28.4
16+
ARG CF_BUILDPACK=v4.30.2
1717
# CF buildpack download URL
1818
ARG CF_BUILDPACK_URL=https://github.com/mendix/cf-mendix-buildpack/releases/download/${CF_BUILDPACK}/cf-mendix-buildpack.zip
1919

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ For build you can provide next arguments:
5757
- **BUILD_PATH** indicates where the application model is located. It is a root directory of an unzipped .MDA or .MPK file. In the latter case, this is the directory where your .MPR file is located. Must be within [build context](https://docs.docker.com/engine/reference/commandline/build/#extended-description). Defaults to `./project`.
5858
- **ROOTFS_IMAGE** is a type of rootfs image. Defaults to `mendix/rootfs:ubi8` (Red Hat Universal Base Image 8). To use Ubuntu 18.04, change this to `mendix/rootfs:bionic`. It's also possible to use a custom rootfs image as described in [Advanced feature: full-build](#advanced-feature-full-build).
5959
- **BUILDER_ROOTFS_IMAGE** is a type of rootfs image used for downloading the Mendix app dependencies and compiling the Mendix app from source. Defaults to `mendix/rootfs:bionic`. It's also possible to use a custom rootfs image as described in [Advanced feature: full-build](#advanced-feature-full-build).
60-
- **CF_BUILDPACK** is a version of CloudFoundry buildpack. Defaults to `v4.28.4`. For stable pipelines, it's recommended to use a fixed version from **v4.28.4** and later. CloudFoundry buildpack versions below **v4.28.4** are not supported.
60+
- **CF_BUILDPACK** is a version of CloudFoundry buildpack. Defaults to `v4.30.2`. For stable pipelines, it's recommended to use a fixed version from **v4.30.2** and later. CloudFoundry buildpack versions below **v4.30.2** are not supported.
6161
- **EXCLUDE_LOGFILTER** will exclude the `mendix-logfilter` binary from the resulting Docker image if set to `true`. Defaults to `true`. Excluding `mendix-logfilter` will reduce the image size and remove a component that's not commonly used; the `LOG_RATELIMIT` environment variable option will be disabled.
6262
- **UNINSTALL_BUILD_DEPENDENCIES** will uninstall packages which are not needed to launch an app, and are only used during the build phase. Defaults to `true`. This option will remove several libraries which are known to have unpatched CVE vulnerabilities.
6363
- **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**.

cf-buildpack.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v4.28.4
1+
v4.30.2

scripts/compilation

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def fix_logfilter():
4444
if exclude_logfilter:
4545
logging.info("Removing mendix-logfilter executable")
4646
shutil.rmtree("/opt/mendix/build/.local/mendix-logfilter")
47-
shutil.rmtree("/opt/mendix/buildpack/vendor/mendix-logfilter")
4847
else:
4948
os.chmod("/opt/mendix/build/.local/mendix-logfilter/mendix-logfilter", 0o0755)
5049

@@ -53,9 +52,9 @@ def make_dependencies_reusable():
5352
shutil.move("/opt/mendix/build/runtimes", "/var/mendix/build/")
5453
shutil.move("/opt/mendix/build/.local/usr", "/var/mendix/build/.local/")
5554
# separate cacerts from reusable jre components
56-
jre = java.determine_jdk(runtime.get_java_version(runtime.get_runtime_version(BUILD_PATH)), 'jre')
57-
jvm_location_reusable = os.path.join("/var/mendix/build/.local/", java.compose_jvm_target_dir(jre))
58-
jvm_location_customized = os.path.join(DOT_LOCAL_LOCATION, java.compose_jvm_target_dir(jre))
55+
jre = java._get_java_dependency(java.get_java_major_version(runtime.get_runtime_version(BUILD_PATH)), 'jre')
56+
jvm_location_reusable = os.path.join("/var/mendix/build/.local/", java._compose_jvm_target_dir(jre))
57+
jvm_location_customized = os.path.join(DOT_LOCAL_LOCATION, java._compose_jvm_target_dir(jre))
5958
cacerts_file_source = os.path.join(jvm_location_reusable, "lib", "security", "cacerts")
6059
cacerts_file_target = os.path.join(jvm_location_customized, "lib", "security", "cacerts")
6160
util.mkdir_p(os.path.dirname(cacerts_file_target))

0 commit comments

Comments
 (0)