Skip to content

Commit 601cddb

Browse files
authored
Merge pull request #224 from mendix/DES-7308_upgrade-cf-buildpack
* Upgraded CF Buildpack to version v5.0.30. * Upgraded NGINX to version 1.26
2 parents cb1789b + ddc4fa9 commit 601cddb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ docker push <app-root-fs-image-tag>
8989

9090
When building the the `rootfs-builder.dockerfile` file, you can provide the following additional arguments:
9191

92-
- **CF_BUILDPACK** is a version of CloudFoundry buildpack. Defaults to `v5.0.26`. For stable pipelines, it's recommended to use a fixed **v5.0.26** version. Other Cloud Foundry buildpacks might not work with this version of Docker Buildpack.
92+
- **CF_BUILDPACK** is a version of CloudFoundry buildpack. Defaults to `v5.0.30`. For stable pipelines, it's recommended to use a fixed **v5.0.30** version. Other Cloud Foundry buildpacks might not work with this version of Docker Buildpack.
9393
- **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**.
9494
- **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.
9595

rootfs-app.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV LC_ALL C.UTF-8
1111

1212
# install dependencies & remove package lists
1313
RUN microdnf update -y && \
14-
microdnf module enable nginx:1.24 -y && \
14+
microdnf module enable nginx:1.26 -y && \
1515
microdnf install -y glibc-langpack-en python311 openssl nginx nginx-mod-stream java-11-openjdk-headless java-17-openjdk-headless java-21-openjdk-headless tzdata-java fontconfig binutils && \
1616
microdnf clean all && rm -rf /var/cache/yum
1717

rootfs-builder.dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV LANG C.UTF-8
1010
ENV LC_ALL C.UTF-8
1111

1212
# CF buildpack version
13-
ARG CF_BUILDPACK=v5.0.26
13+
ARG CF_BUILDPACK=v5.0.30
1414
# CF buildpack download URL
1515
ARG CF_BUILDPACK_URL=https://github.com/mendix/cf-mendix-buildpack/releases/download/${CF_BUILDPACK}/cf-mendix-buildpack.zip
1616

@@ -19,7 +19,7 @@ ARG BUILDPACK_XTRACE
1919

2020
# install dependencies & remove package lists
2121
RUN microdnf update -y && \
22-
microdnf module enable nginx:1.24 -y && \
22+
microdnf module enable nginx:1.26 -y && \
2323
microdnf install -y wget glibc-langpack-en python311 openssl tar gzip unzip libpq nginx nginx-mod-stream binutils fontconfig findutils java-11-openjdk-headless java-17-openjdk-headless java-21-openjdk-headless && \
2424
microdnf remove -y /usr/bin/python && \
2525
microdnf clean all && rm -rf /var/cache/yum
@@ -68,6 +68,7 @@ RUN PYTHON_BUILD_RPMS="python3.11-pip python3.11-devel libffi-devel gcc" && \
6868
microdnf install -y $PYTHON_BUILD_RPMS && \
6969
mkdir -p /home/vcap/.local/bin/ && \
7070
if [ ! -f /home/vcap/.local/bin/pip ] ; then ln -s /usr/bin/pip3.11 /home/vcap/.local/bin/pip ; fi && \
71+
if ! command -v pip3 ; then ln -s /usr/bin/pip3.11 /usr/bin/pip3 ; fi && \
7172
rm /opt/mendix/buildpack/vendor/wheels/* && \
7273
chmod +rx /opt/mendix/buildpack/bin/bootstrap-python && /opt/mendix/buildpack/bin/bootstrap-python /opt/mendix/buildpack /tmp/buildcache && \
7374
microdnf remove -y $PYTHON_BUILD_RPMS && microdnf clean all && rm -rf /var/cache/yum

0 commit comments

Comments
 (0)