This repository was archived by the owner on Dec 14, 2023. It is now read-only.
Description The default recipe-installer works locally.
Testing recipe encountered errors as shown below:
╭─ 🏠 ss-dev-kit main ≡ | RAM: 15/16GB | 8.1.18 ⏰ 11:35:19
╰─ ./bin/ss-dev-kit create --recipe="core" -P 8.1 -vvv /tmp/sample
Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9000 (fallback through xdebug.client_host/xdebug.client_port).
Creating new project and attaching environment
Finding port
Using port 44965
Preparing project directory
Spinning up docker
Preparing docker directory
Rendering templates into docker
Rendering .env.twig
Rendering docker_apache_default.twig
Rendering docker-compose.yml.twig
Finished rendering templates
Starting docker containers
Running command in docker container: "docker compose up --build --wait -d"
[+] Building 0.1s (12/12) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.40kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/guysartorelli/ss-dev-kit:latest 0.0s
=> [1/7] FROM docker.io/guysartorelli/ss-dev-kit 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 2.63kB 0.0s
=> CACHED [2/7] RUN ln -snf /usr/share/zoneinfo/Pacific/Auckland /etc/localtime && echo Pacific/Auckland > /etc/timezone 0.0s
=> CACHED [3/7] COPY docker_apache_default /etc/apache2/sites-available/000-default.conf 0.0s
=> CACHED [4/7] RUN a2enmod rewrite 0.0s
=> CACHED [5/7] RUN if [ 1000 -ne 0 ] && [ 1000 -ne 0 ]; then userdel -f www-data && if getent group www-data ; then groupdel www-data; fi && groupadd -g 1000 www-data && useradd -l -u 1000 -g 0.0s
=> CACHED [6/7] COPY entrypoint /usr/local/bin/start_container 0.0s
=> CACHED [7/7] RUN chmod +x /usr/local/bin/start_container 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:5def231cc1974561a8e336d2476f2e94852a85a1f529b27ed76219b529245b52 0.0s
=> => naming to docker.io/gsartorelli/webserver 0.0s
[+] Running 4/4
⠿ Network sample_default Created 0.0s
⠿ Volume "sample_database-volume" Created 0.0s
⠿ Container sample_database Healthy 30.6s
⠿ Container sample_webserver Healthy 1.1s
Setting appropriate PHP version
Checking CLI PHP version
Running command in docker container: "docker exec --workdir /var/www -u 1000 sample_webserver env TERM=xterm-256color bash -c echo $(php -r "echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;")"
Docker output: 8.2
Checking apache PHP version
Running command in docker container: "docker exec --workdir /var/www -u 1000 sample_webserver env TERM=xterm-256color bash -c ls /etc/apache2/mods-enabled/ | grep php[0-9.]*\.conf"
Docker output: php7.4.conf
Swapping CLI PHP from 8.2 to 8.1.
Running command in docker container: "docker exec -t -i --workdir /var/www sample_webserver env TERM=xterm-256color bash -c rm /etc/alternatives/php && \
ln -s /usr/bin/php8.1 /etc/alternatives/php"
Swapping Apache PHP from 7.4 to 8.1.
Running command in docker container: "docker exec -t -i --workdir /var/www sample_webserver env TERM=xterm-256color bash -c rm /etc/apache2/mods-enabled/php7.4.conf && \
rm /etc/apache2/mods-enabled/php7.4.load && \
ln -s /etc/apache2/mods-available/php8.1.conf /etc/apache2/mods-enabled/php8.1.conf && \
ln -s /etc/apache2/mods-available/php8.1.load /etc/apache2/mods-enabled/php8.1.load"
Running command in docker container: "docker compose restart -t0 webserver"
[+] Running 1/1
⠿ Container sample_webserver Started 0.7s
Using PHP version 8.1
Building composer project
Making temporary directory
Running command in docker container: "docker exec -t -i --workdir /var/www -u 1000 sample_webserver env TERM=xterm-256color bash -c mkdir /tmp/composer-create-project-1684798562"
Running command in docker container: "docker exec -t -i --workdir /tmp/composer-create-project-1684798562 -u 1000 sample_webserver env TERM=xterm-256color bash -c composer create-project --no-interaction --no-progress --no-audit silverstripe/recipe-core:^5.0 ./"
Creating a "silverstripe/recipe-core:^5.0" project at "./"
Info from https://repo.packagist.org: #StandWithUkraine
Installing silverstripe/recipe-core (5.0.0)
- Installing silverstripe/recipe-core (5.0.0): Extracting archive
Created project in /tmp/composer-create-project-1684798562/./
Loading composer repositories with package information
Updating dependencies
Lock file operations: 87 installs, 0 updates, 0 removals
- Locking composer/ca-bundle (1.3.5)
- Locking composer/installers (v2.2.0)
- Locking doctrine/instantiator (2.0.0)
- Locking doctrine/lexer (3.0.0)
- Locking egulias/email-validator (4.0.1)
- Locking embed/embed (v4.4.8)
- Locking guzzlehttp/guzzle (7.7.0)
- Locking guzzlehttp/promises (2.0.0)
- Locking guzzlehttp/psr7 (2.5.0)
- Locking intervention/image (2.7.2)
- Locking league/csv (9.9.0)
- Locking league/flysystem (3.15.1)
- Locking league/flysystem-local (3.15.0)
- Locking league/mime-type-detection (1.11.0)
- Locking m1/env (2.2.0)
- Locking marcj/topsort (2.0.0)
- Locking masterminds/html5 (2.8.0)
- Locking mikey179/vfsstream (v1.6.11)
- Locking ml/iri (1.1.4)
- Locking ml/json-ld (1.2.1)
- Locking monolog/monolog (3.3.1)
- Locking myclabs/deep-copy (1.11.1)
- Locking nikic/php-parser (v4.15.5)
- Locking oscarotero/html-parser (v0.1.7)
- Locking phar-io/manifest (2.0.3)
- Locking phar-io/version (3.2.1)
- Locking phpunit/php-code-coverage (9.2.26)
- Locking phpunit/php-file-iterator (3.0.6)
- Locking phpunit/php-invoker (3.1.1)
- Locking phpunit/php-text-template (2.0.4)
- Locking phpunit/php-timer (5.0.3)
- Locking phpunit/phpunit (9.6.8)
- Locking psr/cache (3.0.0)
- Locking psr/container (2.0.2)
- Locking psr/event-dispatcher (1.0.0)
- Locking psr/http-client (1.0.2)
- Locking psr/http-factory (1.0.2)
- Locking psr/http-message (2.0)
- Locking psr/log (3.0.0)
- Locking psr/simple-cache (3.0.0)
- Locking ralouphie/getallheaders (3.0.3)
- Locking sebastian/cli-parser (1.0.1)
- Locking sebastian/code-unit (1.0.8)
- Locking sebastian/code-unit-reverse-lookup (2.0.3)
- Locking sebastian/comparator (4.0.8)
- Locking sebastian/complexity (2.0.2)
- Locking sebastian/diff (4.0.5)
- Locking sebastian/environment (5.1.5)
- Locking sebastian/exporter (4.0.5)
- Locking sebastian/global-state (5.0.5)
- Locking sebastian/lines-of-code (1.0.3)
- Locking sebastian/object-enumerator (4.0.4)
- Locking sebastian/object-reflector (2.0.4)
- Locking sebastian/recursion-context (4.0.5)
- Locking sebastian/resource-operations (3.0.3)
- Locking sebastian/type (3.2.1)
- Locking sebastian/version (3.0.2)
- Locking silverstripe/assets (2.0.1)
- Locking silverstripe/config (2.0.0)
- Locking silverstripe/framework (5.0.2)
- Locking silverstripe/mimevalidator (3.0.0)
- Locking silverstripe/recipe-plugin (2.0.0)
- Locking silverstripe/vendor-plugin (2.0.0)
- Locking silverstripe/versioned (2.0.0)
- Locking sminnee/callbacklist (0.1.1)
- Locking symfony/cache (v6.2.10)
- Locking symfony/cache-contracts (v3.2.1)
- Locking symfony/config (v6.2.7)
- Locking symfony/deprecation-contracts (v3.2.1)
- Locking symfony/dom-crawler (v6.2.9)
- Locking symfony/event-dispatcher (v6.2.8)
- Locking symfony/event-dispatcher-contracts (v3.2.1)
- Locking symfony/filesystem (v6.2.10)
- Locking symfony/finder (v6.2.7)
- Locking symfony/mailer (v6.2.8)
- Locking symfony/mime (v6.2.10)
- Locking symfony/polyfill-ctype (v1.27.0)
- Locking symfony/polyfill-intl-idn (v1.27.0)
- Locking symfony/polyfill-intl-normalizer (v1.27.0)
- Locking symfony/polyfill-mbstring (v1.27.0)
- Locking symfony/polyfill-php72 (v1.27.0)
- Locking symfony/service-contracts (v3.2.1)
- Locking symfony/translation (v6.2.8)
- Locking symfony/translation-contracts (v3.2.1)
- Locking symfony/var-exporter (v6.2.10)
- Locking symfony/yaml (v6.2.10)
- Locking theseer/tokenizer (1.2.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 87 installs, 0 updates, 0 removals
Hint: To allow running the config command recommended below before dependencies are installed, run create-project with --no-install.
You can then cd into /tmp/composer-create-project-1684798562, configure allow-plugins, and finally run a composer install to complete the process.
In PluginManager.php line 740:
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.
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)
See https://getcomposer.org/allow-plugins
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]
Docker exit code: 1
[ERROR] Couldn't create composer project.
[ERROR] Error occurred, rolling back...
Tearing down docker
Running command in docker container: "docker compose down --remove-orphans --volumes --rmi=local"
[+] Running 5/5
⠿ Container sample_database Removed 1.1s
⠿ Container sample_webserver Removed 10.4s
⠿ Volume sample_database-volume Removed 0.0s
⠿ Image gsartorelli/webserver:latest Removed 0.0s
⠿ Network sample_default Removed 0.2s
Deleting project dir
Rollback successful
Reactions are currently unavailable
The default recipe-installer works locally.
Testing recipe encountered errors as shown below: