Docker buildpack is experiencing serious issues.

0
Hello everyone, I encountered this problem when I used docker build pack to package image. I used the latest branch of build pack at this address https://github.com/mendix/docker-mendix-buildpack/tree/latest?tab=readme-ov-file to package.     => ERROR [builder 4/4] RUN mkdir -p /tmp/buildcache/bust /tmp/cf-deps /var/mendix/build /var/mendix/build/.local &&    chmod +rx /opt/mendix/buildpack/compilation.py /opt/mendix/  0.5s------                                                                                                                                                                                     > [builder 4/4] RUN mkdir -p /tmp/buildcache/bust /tmp/cf-deps /var/mendix/build /var/mendix/build/.local &&    chmod +rx /opt/mendix/buildpack/compilation.py /opt/mendix/buildpack/buildpack/stage.py /opt/mendix/build/startup.py &&    cd /opt/mendix/buildpack &&    ./compilation.py /opt/mendix/build /tmp/buildcache /tmp/cf-deps 0 &&    rm -fr /tmp/buildcache /tmp/javasdk /tmp/opt /tmp/downloads /opt/mendix/buildpack/compilation.py /var/mendix &&    ln -s /opt/mendix/.java /opt/mendix/build &&    chown -R 1001:0 /opt/mendix &&    chmod -R g=u /opt/mendix:0.443 Traceback (most recent call last):0.443   File "/opt/mendix/buildpack/./compilation.py", line 10, in <module>0.443     from buildpack import util0.444   File "/opt/mendix/buildpack/buildpack/util.py", line 13, in <module>0.444     import requests0.445 ModuleNotFoundError: No module named 'requests'------Dockerfile:44--------------------  43 |     # 8. Update permissions of /opt/mendix so that the app can run as a non-root user  44 | >>> RUN mkdir -p /tmp/buildcache/bust /tmp/cf-deps /var/mendix/build /var/mendix/build/.local &&\  45 | >>>     chmod +rx /opt/mendix/buildpack/compilation.py /opt/mendix/buildpack/buildpack/stage.py /opt/mendix/build/startup.py &&\  46 | >>>     cd /opt/mendix/buildpack &&\  47 | >>>     ./compilation.py /opt/mendix/build /tmp/buildcache /tmp/cf-deps 0 &&\  48 | >>>     rm -fr /tmp/buildcache /tmp/javasdk /tmp/opt /tmp/downloads /opt/mendix/buildpack/compilation.py /var/mendix &&\  49 | >>>     ln -s /opt/mendix/.java /opt/mendix/build &&\  50 | >>>     chown -R ${USER_UID}:0 /opt/mendix &&\  51 | >>>     chmod -R g=u /opt/mendix  52 |     --------------------ERROR: failed to solve: process "/bin/sh -c mkdir -p /tmp/buildcache/bust /tmp/cf-deps /var/mendix/build /var/mendix/build/.local &&    chmod +rx /opt/mendix/buildpack/compilation.py /opt/mendix/buildpack/buildpack/stage.py /opt/mendix/build/startup.py &&    cd /opt/mendix/buildpack &&    ./compilation.py /opt/mendix/build /tmp/buildcache /tmp/cf-deps 0 &&    rm -fr /tmp/buildcache /tmp/javasdk /tmp/opt /tmp/downloads /opt/mendix/buildpack/compi   warnings found (use docker --debug toexpand):SecretsUsedInArgOrEnv: Do not use ARG Or ENVinstructions forsitive data (ARG "DD API KEY")(line 14)seiSecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data(ARG "DD API KEY")(line 58)LegacyKeyValueFormat:"ENV key=value"should be used instead of legacy "ENV key value" format(line 69)egacy "ENV key value" format (line 85)LegacyKeyValueFormat: "ENV key=value" should be used instead ofDockerfile:4443444548505152# 8. Update permissions of /opt/mendix so that the app carun as a non-root userRUN mkdir -p /tmp/buildcache/bust /tmp/cf-deps /var/mendi</build /var/mendix/build/.local &&\endix/buildpack/buildpack/stage.py /opt/mendix/build/startup.py &&chmod +rx /opt/mendix/buildpack/compilation.py /opt/mcd /opt/mendix/buildpack &&\./compilation.py /opt/mendix/build /tmp/buildcache /tnp/cf-deps 日 &&)nloads /opt/mendix/buildpack/compilation.py /var/mendix &&\rm -fr /tmp/buildcache /tmp/javasdk /tmp/opt /tmp/dow1n -s /opt/mendix/.java /opt/mendix/build &&\chown -R ${USER UID}:0 /opt/mendix &&\chmod -R g=u /opt/mendixbust /tmp/cf-deps /var/mendix/build /var/mendix/build/.local &&ERRoR: failed to solve: process "/bin/sh -c mkdir -p /tmp/buildcachechmod +rx /opt/mendix/buildpack/compilation.py /opt/mendix/buildpack/buildpack/staye.py /opt/mendix/build/startup.py&& cd /opt/mendix/buildpack &&./compilation.py /opt/mendix/build /tmp/buildcache /tmp/cf-deps 8 &&m -fr/tmp/buildcache /tmp/javasdk /tmp/opt /tmp/downloads /opt/mendix/buildpack/compichmod -R g=u /opt/mendix" did notation.py /var/mendix && In-s /opt/mendix/.java /opt/mendix/build88chown -R ${USER UID}:0 /opt/mendix &&complete successfully:exit code:1  
asked
1 answers
1

Hello, 

 

Recently, last July, I've tried the procedure of this article and get no errors:

Containerize your Mendix Application with Docker

answered