The Wayback Machine - https://web.archive.org/web/20220810231406/https://github.com/doccano/doccano/issues/1213
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsatisfiable Constraints error during Nginx Docker image build #1213

Open
ljades opened this issue Feb 19, 2021 · 1 comment
Open

Unsatisfiable Constraints error during Nginx Docker image build #1213

ljades opened this issue Feb 19, 2021 · 1 comment
Labels
good first issue

Comments

@ljades
Copy link

@ljades ljades commented Feb 19, 2021

How to reproduce the behaviour

The error occurs in the Step 5/9 of the docker build process

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
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz: BAD signature
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz: BAD signature
ERROR: unsatisfiable constraints:
  g++ (missing):
    required by: world[g++]
  git (missing):
    required by: world[git]
  make (missing):
    required by: world[make]
  python3 (missing):
    required by: world[python3]
ERROR: Service 'nginx' failed to build : The command '/bin/sh -c apk add -U --no-cache git python3 make g++   && yarn install   && yarn build   && apk del --no-cache git make g++' returned a non-zero code: 4

Reproducible by making any tweak to the frontend code, and running:

docker-compose -f docker-compose.prod.yml build nginx

Your Environment

  • Operating System: MacOS Mojave 10.14.6
  • Python Version Used: 3.9.0
  • How did you install doccano (Heroku button etc): git clone, docker-compose -f docker-compose.prod.yml up
@ljades
Copy link
Author

@ljades ljades commented Feb 19, 2021

The node image for 13.7-Alpine hasn't been pushed for a year. Currently debugging, tried to swap the image for node:15.9-alpine (pushed much more recently), same issue. That one uses Alpine3.11 as well.

Currently trying node:15.9-alpine3.13, and it successfully built. So it looks like it is a signature issue for Alpine3.11 specifically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue
Projects
None yet
Development

No branches or pull requests

2 participants