Skip to content

Commit

Permalink
Merge pull request #181 from mendix/fix-random-uids
Browse files Browse the repository at this point in the history
Ensure that writing to /etc/passwd is no longer required
  • Loading branch information
zlogic authored Oct 18, 2023
2 parents 38f09bd + bd8cdd2 commit f67107e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ ARG USER_UID=1001
# Set the home path
ENV HOME=/opt/mendix/build

# Allow the user group to modify /etc/passwd so that OpenShift 3 randomized UIDs are supported by CF Buildpack
RUN chmod g=u /etc/passwd &&\
chown ${USER_UID}:0 /etc/passwd

# Add the buildpack modules
ENV PYTHONPATH "/opt/mendix/buildpack/lib/:/opt/mendix/buildpack/:/opt/mendix/buildpack/lib/python3.11/site-packages/"

Expand Down
2 changes: 1 addition & 1 deletion rootfs-builder.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

# CF buildpack version
ARG CF_BUILDPACK=v5.0.4
ARG CF_BUILDPACK=v5.0.9
# CF buildpack download URL
ARG CF_BUILDPACK_URL=https://github.com/mendix/cf-mendix-buildpack/releases/download/${CF_BUILDPACK}/cf-mendix-buildpack.zip

Expand Down

0 comments on commit f67107e

Please sign in to comment.