question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Todo

  • use the standalone installer inside the image
  • use Debian as the image base

Original issue

Trying to build with docker-compose up and it failed and returned this:

Step 1/6 : FROM alpine:latest ---> e7d92cdc71fe Step 2/6 : WORKDIR /app ---> Using cache ---> 263a4ff5837a Step 3/6 : COPY . /app ---> Using cache ---> 07ea790a3d82 Step 4/6 : RUN apk add --update --no-cache python2 py2-pip py2-gevent py2-flask py2-requests py2-pygments py2-redis py2-cffi py2-icu bash vim gawk sed && apk add --no-cache --virtual build-deps python2-dev build-base git && pip install -r requirements.txt && sh share/scripts/get-sheets.sh && apk del build-deps ---> Running in 5b4115fbf344 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-cffi (missing): required by: world[py2-cffi] py2-flask (missing): required by: world[py2-flask] py2-gevent (missing): required by: world[py2-gevent] py2-icu (missing): required by: world[py2-icu] py2-pygments (missing): required by: world[py2-pygments] py2-redis (missing): required by: world[py2-redis] py2-requests (missing): required by: world[py2-requests] ERROR: Service 'app' failed to build: The command '/bin/sh -c apk add --update --no-cache python2 py2-pip py2-gevent py2-flask py2-requests py2-pygments py2-redis py2-cffi py2-icu bash vim gawk sed && apk add --no-cache --virtual build-deps python2-dev build-base git && pip install -r requirements.txt && sh share/scripts/get-sheets.sh && apk del build-deps' returned a non-zero code: 7

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DuploMinhcommented, Nov 14, 2021

@abitrolly Thank you! I can verify it works now.

0reactions
abitrollycommented, Nov 13, 2021

@DuploMinh the docker-compose scenario is fixed. Although it didn’t migrate off Alpine, it should now work by default. Could you check that it works for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >
How to fix a malfunctioning docker container? - Stack Overflow
The other way is to stop the docker daemon, go find the config.json of your container which may be somewhere here: /var/lib/docker/containers/..
Read more >
How to find and fix Docker container vulnerabilities in 2020
These images often contain certain vulnerabilities which make the entire container and its host vulnerable to malicious attacks. Listed below ...
Read more >
Fixing Docker image vulnerabilities (with centos2ol.sh)
You want to run a Docker image but it doesn't pass the vulnerability check? Here is an example on how to deal with,...
Read more >
How to Debug and Fix Common Docker Issues - DigitalOcean
In this troubleshooting guide aimed at people new to Docker, you'll troubleshoot problems when building Docker images, resolve naming ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found