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.

Unable to up project with docker-compose

See original GitHub issue

Freshly unzipped code (last version available) return this error when docker-compose up is executed

ERROR: Service 'php' failed to build: The command '/bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev libzip-dev postgresql-dev zlib-dev ; docker-php-ext-configure zip --with-libzip; docker-php-ext-install -j$(nproc) intl pdo_pgsql zip ; pecl install apcu-${APCU_VERSION} ; pecl clear-cache; docker-php-ext-enable apcu opcache ; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache --virtual .api-phpexts-rundeps $runDeps; apk del .build-deps' returned a non-zero code: 2

Any idea?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
teohhanhuicommented, Aug 22, 2018
0reactions
agung-wetecommented, Sep 5, 2018

after couple lines of try apk update i add

FROM php:${PHP_VERSION}-fpm-alpine AS api_platform_php

#update first RUN apk update;

it works 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to docker-compose up any project - Stack Overflow
Whenever I try to docker-compose up any project I get the following error. I've tried with and without sudo I am only having...
Read more >
Docker compose up build fails to update container
up start the service your_service · --build build the image if it does not exist or has changed. Use cache for parts which...
Read more >
Docker Compose build fails when including Node project in ...
Removing the Node project from the solution and running the Docker Compose build from within VS succeeds. Conversely, re-adding the Node project causes...
Read more >
unable to access app after docker compose · Issue #86 - GitHub
I followed instruction one by one, once containers were composed using docker run -d --network todo-app --network-alias mysql -v ...
Read more >
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 >

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