docker-misp
docker-misp copied to clipboard
Composer error during build
Hello, I'm facing an error when building MISP images :
git clone --branch master https://github.com/coolacid/docker-misp.gitcd docker-mispdocker-compose -f build-docker-compose.yml buildBelow is the output of the build command :
[+] Building 31.4s (19/69)
=> [coolacid/misp-docker:modules-test internal] load build definition from Dockerfile 0.6s
=> => transferring dockerfile: 32B 0.0s
=> [coolacid/misp-docker:core-test internal] load build definition from Dockerfile 0.6s
=> => transferring dockerfile: 32B 0.0s
=> [coolacid/misp-docker:modules-test internal] load .dockerignore 0.8s
=> => transferring context: 2B 0.0s
=> [coolacid/misp-docker:core-test internal] load .dockerignore 0.7s
=> => transferring context: 2B 0.0s
=> [coolacid/misp-docker:modules-test internal] load metadata for docker.io/library/python:3.9-slim-bullseye 29.6s
=> [coolacid/misp-docker:core-test internal] load metadata for docker.io/library/debian:bullseye-slim 0.0s
=> [coolacid/misp-docker:core-test internal] load metadata for docker.io/library/composer:2.2 3.6s
=> CACHED [coolacid/misp-docker:modules-test builder 1/8] FROM docker.io/library/python:3.9-slim-bullseye@sha256:fb1f5863ebed6fefa0c467353d73c4eaaaa6754e06247e606839a6f9a096a685 0.0s
=> CANCELED [coolacid/misp-docker:modules-test builder 2/8] RUN apt-get update && apt-get install -y --no-install-recommends cmake git python3-dev 25.7s
=> CANCELED [coolacid/misp-docker:modules-test stage-1 2/5] RUN apt-get update && apt-get install -y --no-install-recommends libglib2.0-0 libzbar0 libxrender1 25.9s
=> [coolacid/misp-docker:core-test internal] load build context 0.4s
=> => transferring context: 583B 0.0s
=> [coolacid/misp-docker:core-test composer-build 1/4] FROM docker.io/library/composer:2.2@sha256:2ce1a5911a9eb57f4539bc3c2bde61ff19821ea60a2d5e417482ae290d4abac0 0.0s
=> [coolacid/misp-docker:core-test] https://raw.githubusercontent.com/MISP/MISP/v2.4.159/app/composer.json 0.6s
=> CACHED [coolacid/misp-docker:core-test php-build 1/5] FROM docker.io/library/debian:bullseye-slim 0.0s
=> CANCELED [coolacid/misp-docker:core-test python-build 2/14] RUN apt-get update; apt-get install -y --no-install-recommends gcc git python3 python3-dev python3-pi 24.8s
=> CANCELED [coolacid/misp-docker:core-test stage-3 2/27] RUN apt-get update; apt-get install -y --no-install-recommends procps sudo nginx supervisor git cr 25.0s
=> CANCELED [coolacid/misp-docker:core-test php-build 2/5] RUN apt-get update; apt-get install -y --no-install-recommends gcc make libfuzzy-dev ca-certificates php 24.5s
=> CACHED [coolacid/misp-docker:core-test composer-build 2/4] WORKDIR /tmp 0.0s
=> CACHED [coolacid/misp-docker:core-test composer-build 3/4] ADD https://raw.githubusercontent.com/MISP/MISP/v2.4.159/app/composer.json /tmp 0.0s
=> ERROR [coolacid/misp-docker:core-test composer-build 4/4] RUN composer install --ignore-platform-reqs && composer require jakub-onderka/openid-connect-php:1.0.0-rc1 --ignore-platform-reqs 21.5s
------
> [coolacid/misp-docker:core-test composer-build 4/4] RUN composer install --ignore-platform-reqs && composer require jakub-onderka/openid-connect-php:1.0.0-rc1 --ignore-platform-reqs:
#0 1.589 No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
#0 1.590 Loading composer repositories with package information
#0 5.310 Info from https://repo.packagist.org: #StandWithUkraine
#0 7.177 Updating dependencies
#0 7.192 Lock file operations: 41 installs, 0 updates, 0 removals
#0 7.192 - Locking cakephp/debug_kit (2.2.9)
#0 7.192 - Locking composer/installers (v1.12.0)
#0 7.192 - Locking doctrine/instantiator (1.4.1)
#0 7.192 - Locking kamisama/cake-resque (4.1.2)
#0 7.192 - Locking kamisama/monolog-init (0.2.1)
#0 7.192 - Locking kamisama/php-resque-ex (1.3.0)
#0 7.192 - Locking kamisama/php-resque-ex-scheduler (1.2.3)
#0 7.192 - Locking kamisama/resque-status (0.0.2)
#0 7.192 - Locking monolog/monolog (1.24.0)
#0 7.192 - Locking myclabs/deep-copy (1.11.0)
#0 7.192 - Locking pear/console_commandline (v1.2.4)
#0 7.192 - Locking pear/crypt_gpg (v1.6.7)
#0 7.192 - Locking pear/pear_exception (v1.0.2)
#0 7.192 - Locking phar-io/manifest (2.0.3)
#0 7.192 - Locking phar-io/version (3.2.1)
#0 7.192 - Locking php-parallel-lint/php-parallel-lint (v1.3.2)
#0 7.192 - Locking phpdocumentor/reflection-common (2.2.0)
#0 7.192 - Locking phpdocumentor/reflection-docblock (5.3.0)
#0 7.192 - Locking phpdocumentor/type-resolver (1.6.1)
#0 7.192 - Locking phpspec/prophecy (v1.15.0)
#0 7.192 - Locking phpunit/php-code-coverage (7.0.15)
#0 7.193 - Locking phpunit/php-file-iterator (2.0.5)
#0 7.193 - Locking phpunit/php-text-template (1.2.1)
#0 7.193 - Locking phpunit/php-timer (2.1.3)
#0 7.193 - Locking phpunit/php-token-stream (4.0.4)
#0 7.193 - Locking phpunit/phpunit (8.5.28)
#0 7.193 - Locking psr/log (1.1.4)
#0 7.193 - Locking sebastian/code-unit-reverse-lookup (1.0.2)
#0 7.193 - Locking sebastian/comparator (3.0.3)
#0 7.193 - Locking sebastian/diff (3.0.3)
#0 7.193 - Locking sebastian/environment (4.2.4)
#0 7.193 - Locking sebastian/exporter (3.1.4)
#0 7.193 - Locking sebastian/global-state (3.0.2)
#0 7.193 - Locking sebastian/object-enumerator (3.0.4)
#0 7.193 - Locking sebastian/object-reflector (1.1.2)
#0 7.193 - Locking sebastian/recursion-context (3.0.1)
#0 7.193 - Locking sebastian/resource-operations (2.0.2)
#0 7.193 - Locking sebastian/type (1.1.4)
#0 7.193 - Locking sebastian/version (2.0.1)
#0 7.193 - Locking theseer/tokenizer (1.2.1)
#0 7.193 - Locking webmozart/assert (1.11.0)
#0 7.196 Writing lock file
#0 7.196 Installing dependencies from lock file (including require-dev)
#0 7.200 Package operations: 41 installs, 0 updates, 0 removals
#0 7.203 - Downloading composer/installers (v1.12.0)
#0 7.204 - Downloading cakephp/debug_kit (2.2.9)
#0 7.206 - Downloading kamisama/resque-status (0.0.2)
#0 7.206 - Downloading psr/log (1.1.4)
#0 7.207 - Downloading monolog/monolog (1.24.0)
#0 7.209 - Downloading kamisama/monolog-init (0.2.1)
#0 7.209 - Downloading kamisama/php-resque-ex (1.3.0)
#0 7.210 - Downloading kamisama/php-resque-ex-scheduler (1.2.3)
#0 7.211 - Downloading kamisama/cake-resque (4.1.2)
#0 7.212 - Downloading pear/pear_exception (v1.0.2)
#0 7.212 - Downloading pear/console_commandline (v1.2.4)
#0 7.213 - Downloading pear/crypt_gpg (v1.6.7)
#0 7.214 - Downloading php-parallel-lint/php-parallel-lint (v1.3.2)
#0 7.214 - Downloading webmozart/assert (1.11.0)
#0 7.214 - Downloading phpdocumentor/reflection-common (2.2.0)
#0 7.215 - Downloading phpdocumentor/type-resolver (1.6.1)
#0 7.215 - Downloading phpdocumentor/reflection-docblock (5.3.0)
#0 7.215 - Downloading phpunit/php-token-stream (4.0.4)
#0 7.216 - Downloading sebastian/version (2.0.1)
#0 7.216 - Downloading sebastian/type (1.1.4)
#0 7.216 - Downloading sebastian/resource-operations (2.0.2)
#0 7.217 - Downloading sebastian/recursion-context (3.0.1)
#0 7.217 - Downloading sebastian/object-reflector (1.1.2)
#0 7.217 - Downloading sebastian/object-enumerator (3.0.4)
#0 7.217 - Downloading sebastian/global-state (3.0.2)
#0 7.218 - Downloading sebastian/exporter (3.1.4)
#0 7.218 - Downloading sebastian/environment (4.2.4)
#0 7.218 - Downloading sebastian/diff (3.0.3)
#0 7.218 - Downloading sebastian/comparator (3.0.3)
#0 7.218 - Downloading phpunit/php-timer (2.1.3)
#0 7.218 - Downloading phpunit/php-text-template (1.2.1)
#0 7.219 - Downloading phpunit/php-file-iterator (2.0.5)
#0 7.219 - Downloading theseer/tokenizer (1.2.1)
#0 7.219 - Downloading sebastian/code-unit-reverse-lookup (1.0.2)
#0 7.219 - Downloading phpunit/php-code-coverage (7.0.15)
#0 7.219 - Downloading doctrine/instantiator (1.4.1)
#0 7.219 - Downloading phpspec/prophecy (v1.15.0)
#0 7.220 - Downloading phar-io/version (3.2.1)
#0 7.220 - Downloading phar-io/manifest (2.0.3)
#0 7.220 - Downloading myclabs/deep-copy (1.11.0)
#0 7.220 - Downloading phpunit/phpunit (8.5.28)
#0 7.274 0/41 [>---------------------------] 0%
#0 10.71 1/41 [>---------------------------] 2%
#0 11.21 4/41 [==>-------------------------] 9%
#0 11.42 5/41 [===>------------------------] 12%
#0 11.69 6/41 [====>-----------------------] 14%
#0 12.01 7/41 [====>-----------------------] 17%
#0 12.18 8/41 [=====>----------------------] 19%
#0 12.55 9/41 [======>---------------------] 21%
#0 12.66 10/41 [======>---------------------] 24%
#0 12.82 11/41 [=======>--------------------] 26%
#0 13.72 12/41 [========>-------------------] 29%
#0 14.12 15/41 [==========>-----------------] 36%
#0 14.53 18/41 [============>---------------] 43%
#0 19.50 20/41 [=============>--------------] 48%
#0 19.83 23/41 [===============>------------] 56%
#0 20.45 34/41 [=======================>----] 82%
#0 20.69 35/41 [=======================>----] 85%
#0 21.05 39/41 [==========================>-] 95%
#0 21.12 41/41 [============================] 100%
#0 21.15
#0 21.16
#0 21.16 [Composer\Plugin\PluginBlockedException]
#0 21.16 composer/installers contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe.
#0 21.16 You can run "composer config --no-plugins allow-plugins.composer/installers [true|false]" to enable it (true) or disable it explicitly and suppress this exception (false)
#0 21.16 See https://getcomposer.org/allow-plugins
#0 21.16
#0 21.16
#0 21.16 install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--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>]...
#0 21.16
------
failed to solve: executor failed running [/bin/sh -c composer install --ignore-platform-reqs && composer require jakub-onderka/openid-connect-php:1.0.0-rc1 --ignore-platform-reqs]: exit code: 1
Some context :
- Last commit is 5c04a384109ec0dd91518ba0b6fdd7f12fd60e5b "Bump Versions" (Wed Jun 1 09:39:28 2022)
- Docker version 20.10.17, build 100c70180f
- Docker Compose version 2.6.1
- Linux 5.13.19-2-MANJARO (Manjaro Linux rel. 21.3.5 "Ruah")
Am I missing something ?
Thanks in advance (and sorry if this issue happens to be a duplicate...).
I'm looking for a work around - please open an issue upstream referencing https://getcomposer.org/doc/06-config.md#allow-plugins
Is this not an acceptable fix? https://github.com/coolacid/docker-misp/pull/179