Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Build failing using docker-compose #170

Open
KoenBrouwer opened this issue Nov 9, 2021 · 3 comments
Open

Build failing using docker-compose #170

KoenBrouwer opened this issue Nov 9, 2021 · 3 comments

Comments

@KoenBrouwer
Copy link

KoenBrouwer commented Nov 9, 2021

Describe the bug
There seems to be a problem building the php service.

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repository
  2. Run docker-compose up
  3. See error

Expected behavior
I expect all services to end up running.

Screenshots
N/A

Desktop (please complete the following information):

  • MacBook Pro 13" 2018 (2,3 GHz Quad-Core Intel i5, 16GB RAM) running macOS 11
  • Docker 20.10.8.

Additional context

$ docker-compose up
WARNING: The APP_CONTAINER variable is not set. Defaulting to a blank string.
WARNING: The APP_NAME_TECHNICAL variable is not set. Defaulting to a blank string.
WARNING: The APP_COMMONGROUND_ID variable is not set. Defaulting to a blank string.
WARNING: The BADGES variable is not set. Defaulting to a blank string.
WARNING: Some networks were defined but are not used by any service: nlx
Building php
[+] Building 2.0s (14/26)                                                                                                                                                                                                               
 => [internal] load build definition from Dockerfile                                                                                                                                                                               0.0s
 => => transferring dockerfile: 37B                                                                                                                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                  0.0s
 => => transferring context: 35B                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/conduction/pc-php:prod                                                                                                                                                                  0.6s
 => importing cache manifest from ghcr.io/conductionnl/contactcatalogus-nginx                                                                                                                                                      0.7s
 => ERROR importing cache manifest from ghcr.io/conductionnl/contactcatalogus-varnish                                                                                                                                              0.6s
 => ERROR importing cache manifest from ghcr.io/conductionnl/contactcatalogus-phpdoc                                                                                                                                               0.6s
 => importing cache manifest from ghcr.io/conductionnl/contactcatalogus-php                                                                                                                                                        0.7s
 => ERROR importing cache manifest from ghcr.io/conductionnl/contactcatalogus-sphinx                                                                                                                                               0.6s
 => [ 1/17] FROM docker.io/conduction/pc-php:prod@sha256:952a343052cfeb24bd8dd53c7e76e09d9ab37d1255613bb7ee8dbb8c3137f95b                                                                                                          0.0s
 => [internal] load build context                                                                                                                                                                                                  0.0s
 => => transferring context: 14.27kB                                                                                                                                                                                               0.0s
 => CACHED [ 2/17] RUN set -eux;  composer global require "symfony/flex" --prefer-dist --no-progress --no-suggest --classmap-authoritative;  composer clear-cache                                                                  0.0s
 => CACHED [ 3/17] WORKDIR /srv/api                                                                                                                                                                                                0.0s
 => CACHED [ 4/17] COPY composer.json composer.lock symfony.lock ./                                                                                                                                                                0.0s
 => ERROR [ 5/17] RUN set -eux;  composer install --prefer-dist --no-dev --no-scripts --no-progress --no-suggest;  composer clear-cache                                                                                            0.6s
------                                                                                                                                                                                                                                  
 > importing cache manifest from ghcr.io/conductionnl/contactcatalogus-varnish:                                                                                                                                                         
------                                                                                                                                                                                                                                  
------                                                                                                                                                                                                                                  
 > importing cache manifest from ghcr.io/conductionnl/contactcatalogus-phpdoc:                                                                                                                                                          
------
------
 > importing cache manifest from ghcr.io/conductionnl/contactcatalogus-sphinx:
------
------
 > [ 5/17] RUN set -eux;        composer install --prefer-dist --no-dev --no-scripts --no-progress --no-suggest;        composer clear-cache:
#13 0.219 + composer install --prefer-dist --no-dev --no-scripts --no-progress --no-suggest
#13 0.374 You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.
#13 0.380 Installing dependencies from lock file
#13 0.386 Verifying lock file contents can be installed on current platform.
#13 0.508 Warning from https://flex.symfony.com/versions.json: You are using an outdated version of Flex, please run: composer update symfony/flex
#13 0.510 Restricting packages listed in "symfony/symfony" to "^5.1"
#13 0.523 
#13 0.526                                                                         
#13 0.526   [LogicException]                                                      
#13 0.526   Fixed package symfony/contracts v1.1.0 was not added to solver pool.  
#13 0.526                                                                         
#13 0.526 
#13 0.526 install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-scripts] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>]...
#13 0.526 
------
executor failed running [/bin/sh -c set -eux;   composer install --prefer-dist --no-dev --no-scripts --no-progress --no-suggest;        composer clear-cache]: exit code: 1
ERROR: Service 'php' failed to build : Build failed
@KoenBrouwer
Copy link
Author

@WilcoLouwerse
Copy link
Contributor

WilcoLouwerse commented Nov 16, 2021

Hey Koen, sorry that we haven't noticed your issue earlier!
Your build fails because of an old dependency.
You can solve this problem by copying this composer.lock file and overwrite your local contactcatalogus->api->composer.lock:
https://github.com/ConductionNL/user-component/blob/master/api/composer.lock

@KoenBrouwer
Copy link
Author

Right. Shouldn't you guys update your lock file in this repository as well then?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants