csp icon indicating copy to clipboard operation
csp copied to clipboard

building base image dockerjava8 fails

Open tomas321 opened this issue 4 years ago • 0 comments

PROBLEM:

  • fails on building cryptography (as the docker-compose pip package dependency)

error message snippet:

  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for cryptography
  Building wheel for pyyaml (PEP 517): started
  Building wheel for pyyaml (PEP 517): finished with status 'done'
  Created wheel for pyyaml: filename=PyYAML-5.4.1-cp27-cp27mu-linux_x86_64.whl size=46823 sha256=4fcd018c59eb0998c39f1d99b492aa09a42e786b6d451906951e730e0af8d375
  Stored in directory: /root/.cache/pip/wheels/ac/f7/59/730c380c3ff2d8cb0ee6c31443fab00321b1e55728b7f3a33f
Successfully built pyyaml
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
The command '/bin/sh -c apk add --no-cache bash drill wget ca-certificates libressl python py2-pip py-jinja2 git curl py-pip python-dev libffi-dev openssl-dev gcc  libc-dev  make    && pip install --upgrade pip    && pip install j2cli[yaml] cryptography && update-ca-certificates' returned a non-zero code: 1

FIX:

  • by modifying the Dockerfile with preinstalling cryptography==2.8, the issue is solved
    • I chose this version as it was the latest version at the time of last change of the dockerjava8/Dockerfile

tomas321 avatar Jan 27 '21 10:01 tomas321