python-keycloak-client icon indicating copy to clipboard operation
python-keycloak-client copied to clipboard

Documentation image build fails with unsatisfied constraints error

Open yaroslav-shabalin opened this issue 6 years ago • 0 comments

Seems that latest Alpine image doesn't have some dependency packages. Changing py2-pip to py3-pip and python-dev to python3-dev respectively resolves the issue.

-> docker build . -f DockerfileDocs -t python-keycloak-client-docs
Sending build context to Docker daemon  559.1kB
Step 1/10 : FROM alpine:latest
latest: Pulling from library/alpine
df20fa9351a1: Pull complete
Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
Status: Downloaded newer image for alpine:latest
 ---> a24bb4013296
Step 2/10 : RUN apk --no-cache add   py2-pip   python-dev   make   git   gcc   alpine-sdk
 ---> Running in e54edacaf9d3
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  py2-pip (missing):
    required by: world[py2-pip]
  python-dev (missing):
    required by: world[python-dev]
The command '/bin/sh -c apk --no-cache add   py2-pip   python-dev   make   git   gcc   alpine-sdk' returned a non-zero code: 2

yaroslav-shabalin avatar Jun 23 '20 11:06 yaroslav-shabalin