Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

building base image dockerjava8 fails #81

Open
tomas321 opened this issue Jan 27, 2021 · 0 comments
Open

building base image dockerjava8 fails #81

tomas321 opened this issue Jan 27, 2021 · 0 comments

Comments

@tomas321
Copy link
Contributor

tomas321 commented Jan 27, 2021

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 added a commit to SK-CERT/csp that referenced this issue May 11, 2021
fixes issue melicertes#81
dockerjava8 docker image failed to build on 'pip install docker-compose' with cryptography as automatic dependency
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant