mendix / docker-mendix-buildpack

Build and Run Mendix in Docker
https://www.mendix.com
Apache License 2.0
87 stars 114 forks source link

Issues running make build-image #92

Open btyeung opened 4 years ago

btyeung commented 4 years ago

On running make build-image I receive the below error. Is this somehow a missing dependency?

`make build-image docker build \ --build-arg BUILD_PATH=build \ -t mendix/mendix-buildpack:v1.3 . Sending build context to Docker daemon 17.8MB Step 1/26 : ARG ROOTFS_IMAGE=mendix/rootfs:bionic Step 2/26 : FROM ${ROOTFS_IMAGE} AS builder ---> b19f10ef6a9c Step 3/26 : ARG BUILD_PATH=project ---> Using cache ---> dec083b13086 Step 4/26 : ARG DD_API_KEY ---> Using cache ---> 5919a31385fd Step 5/26 : ARG CF_BUILDPACK=master ---> Using cache ---> 7a92e6a3a394 Step 6/26 : RUN mkdir -p /opt/mendix/buildpack /opt/mendix/build && echo "CF Buildpack version ${CF_BUILDPACK}" && curl -fsSL https://github.com/mendix/cf-mendix-buildpack/archive/${CF_BUILDPACK}.tar.gz | tar xz -C /opt/mendix/buildpack --strip-components 1 && chgrp -R 0 /opt/mendix && chmod -R g=u /opt/mendix ---> Using cache ---> 7f6bd31341f6 Step 7/26 : COPY scripts/compilation scripts/git /opt/mendix/buildpack/ ---> Using cache ---> 30505e34a0ab Step 8/26 : COPY $BUILD_PATH /opt/mendix/build ---> Using cache ---> dd094ac729bd Step 9/26 : ENV PYTHONPATH "/opt/mendix/buildpack/lib/" ---> Using cache ---> fd748a32bde1 Step 10/26 : RUN mkdir -p /tmp/buildcache /var/mendix/build /var/mendix/build/.local && chmod +rx /opt/mendix/buildpack/compilation /opt/mendix/buildpack/git && cd /opt/mendix/buildpack && ./compilation /opt/mendix/build /tmp/buildcache && rm -fr /tmp/buildcache /tmp/javasdk /tmp/opt /tmp/downloads /opt/mendix/buildpack/compilation /opt/mendix/buildpack/git && ln -s /opt/mendix/.java /opt/mendix/build && chgrp -R 0 /opt/mendix /var/mendix && chmod -R g=u /opt/mendix /var/mendix ---> Running in 5daf260f74da Traceback (most recent call last): File "./compilation", line 9, in import buildpackutil

ModuleNotFoundError: No module named 'buildpackutil'

The command '/bin/sh -c mkdir -p /tmp/buildcache /var/mendix/build /var/mendix/build/.local && chmod +rx /opt/mendix/buildpack/compilation /opt/mendix/buildpack/git && cd /opt/mendix/buildpack && ./compilation /opt/mendix/build /tmp/buildcache && rm -fr /tmp/buildcache /tmp/javasdk /tmp/opt /tmp/downloads /opt/mendix/buildpack/compilation /opt/mendix/buildpack/git && ln -s /opt/mendix/.java /opt/mendix/build && chgrp -R 0 /opt/mendix /var/mendix && chmod -R g=u /opt/mendix /var/mendix' returned a non-zero code: 1 make: *** [build-image] Error 1`

zlogic commented 4 years ago

Hi @btyeung, are you using the latest version of the Docker Buildpack from the master branch?

If you're using a tag version (https://github.com/mendix/docker-mendix-buildpack/releases/tag/v2.4.0 or lower), then you'll need to specify a CF_BUILDPACK version (v4.4.2). The v2.4.0 Docker Buildpack is no longer compatible with the master branch of the CF Buildpack.

There's an example to apply the fix here: https://github.com/mendix/docker-mendix-buildpack/issues/90#issuecomment-624689349

adrianbumbas commented 4 years ago

Hi @zlogic

I'm using buildpack v2.4.0 and CF_BUILDPACK v4.5.0 and I have the same issue.

cstevandy commented 4 years ago

The docker buildpack v2.4.0 is not compatible with CF_BUILDPACK v4.5.0. It's compatible with v4.4.2