The Cyber Security Platform MeliCERTes is part of the European Strategy for Cyber Security. MeliCERTes is a network for establishing confidence and trust among the national Computer Security Incident Response Teams (CSIRTs) of the Member States and for promoting swift and effective operational cooperation.
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
PROBLEM:
error message snippet:
FIX:
cryptography==2.8
, the issue is solveddockerjava8/Dockerfile