error in docker build
GwenaelPellenArkeup opened this issue · 5 comments
GwenaelPellenArkeup commented
$ docker build -t blackwidow .
Sending build context to Docker daemon 528.4kB
Step 1/7 : FROM alpine:edge
---> 7eacb6761fa1
Step 2/7 : RUN apk --update add --no-cache python2 py2-requests py2-pip py2-lxml py2-requests openssl ca-certificates
---> Running in ea5b005b3661
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
py2-lxml (missing):
required by: world[py2-lxml]
The command '/bin/sh -c apk --update add --no-cache python2 py2-requests py2-pip py2-lxml py2-requests openssl ca-certificates' returned a non-zero code: 1
1N3 commented
Thanks for the heads up. Will take a look when I have a minute.
tdebatty commented
Apparently py2-lxml is not available in alpine:edge, so you should use 3.10
https://pkgs.alpinelinux.org/packages?name=py2-lxml&branch=v3.10
AlexanderTyutin commented
Hello. The same problem with py2-lxml and py2-requests
# docker build -t blackwidow .
Sending build context to Docker daemon 530.4kB
Step 1/7 : FROM alpine:latest
latest: Pulling from library/alpine
e6b0cf9c0882: Already exists
Digest: sha256:2171658620155679240babee0a7714f6509fae66898db422ad803b951257db78
Status: Downloaded newer image for alpine:latest
---> cc0abc535e36
Step 2/7 : RUN apk --update add --no-cache python2 py2-requests py2-pip py2-lxml py2-requests openssl ca-certificates
---> Running in bb4ec5fc8c7d
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
py2-lxml (missing):
required by: world[py2-lxml]
py2-requests (missing):
required by: world[py2-requests]
The command '/bin/sh -c apk --update add --no-cache python2 py2-requests py2-pip py2-lxml py2-requests openssl ca-certificates' returned a non-zero code: 2
tdebatty commented
Same problem again: alpine:latest is now pointing to 3.11, which does not contain py2-lxml
So for now alpine:3.10 is the only version compatible with BlackWidow...
1N3 commented
Just pushed the fix for this in the latest version. To apply the fix, please re-clone the repository and re-run the install.sh file.
git clone https://github.com/1N3/BlackWidow
cd BlackWidow
sudo bash install.sh