Skip to content

Instantly share code, notes, and snippets.

@badri
Last active August 25, 2020 18:01
Show Gist options
  • Save badri/019c962aeb59ef72f8dbc84203a2f6b6 to your computer and use it in GitHub Desktop.
Save badri/019c962aeb59ef72f8dbc84203a2f6b6 to your computer and use it in GitHub Desktop.
Drupal buildpack with npm and node engine
---
php:
version: 7.4.*
webserver: nginx
webdirectory: web
nodejs:
version: ~10
$ pack build -b gcr.io/paketo-buildpacks/node-engine -b gcr.io/paketo-buildpacks/php -b ../drupal-autoload-reset-cnb -b ../drupal-npm-run-cnb d8-2 --clear-cache
full: Pulling from paketobuildpacks/builder
Digest: sha256:26ee10c2d614fdb2e0bdff7d57a4965fe489ecf706c056b42738b8c4ce6ebac5
Status: Image is up to date for paketobuildpacks/builder:full
full-cnb: Pulling from paketobuildpacks/run
Digest: sha256:d2019a8b64c252e6d164f84afa89d699cc6d6a2ff9b7ad6553278fc710626a15
Status: Image is up to date for paketobuildpacks/run:full-cnb
latest: Pulling from paketo-buildpacks/node-engine
9bdb0e9fdaec: Pull complete
Digest: sha256:76131d64e24f9c6e17238d8ea39394a43fd09290e2c5201c420eb4cc183d32ad
Status: Downloaded newer image for gcr.io/paketo-buildpacks/node-engine:latest
latest: Pulling from paketo-buildpacks/php
Digest: sha256:5d065a7c2cf0343f01f01920819c535ee98fc22800b0f7c498ff6e2ad8eb394e
Status: Image is up to date for gcr.io/paketo-buildpacks/php:latest
===> DETECTING
7 of 8 buildpacks participating
paketo-buildpacks/node-engine 0.1.1
paketo-buildpacks/nginx 0.0.180
paketo-buildpacks/php-dist 0.0.195
paketo-buildpacks/php-composer 0.0.114
paketo-buildpacks/php-web 0.0.123
shapeblock-buildpacks/drupal-autoload-reset 0.0.1
shapeblock-buildpacks/drupal-npm-run 0.0.1
===> ANALYZING
Skipping buildpack layer analysis
===> BUILDING
Paketo Node Engine Buildpack 0.1.1
Resolving Node Engine version
Candidate version sources (in priority order):
buildpack.yml -> "~10"
Selected Node Engine version (using buildpack.yml): 10.22.0
Executing build process
Installing Node Engine 10.22.0
Completed in 3.43s
Configuring environment
NODE_ENV -> "production"
NODE_HOME -> "/layers/paketo-buildpacks_node-engine/node"
NODE_VERBOSE -> "false"
Writing profile.d/0_memory_available.sh
Calculates available memory based on container limits at launch time.
Made available in the MEMORY_AVAILABLE environment variable.
Nginx Server Buildpack 0.0.180
Resolving Nginx Server version
Candidate version sources (in priority order):
<unknown> -> ""
Selected Nginx Server version (using <unknown>): 1.17.10
Executing build process
Installing Nginx Server 1.17.10
Completed in 1.617s
Configuring environment
PATH -> "$PATH:/layers/paketo-buildpacks_nginx/nginx/sbin"
Writing profile.d/configure.sh
Calls executable that parses templates in nginx conf
PHP Buildpack 0.0.195
Resolving PHP version
Candidate version sources (in priority order):
buildpack.yml -> "7.4.*"
default-versions -> "7.2.*"
-> ""
Selected PHP version (using buildpack.yml): 7.4.8
Executing build process
Installing PHP 7.4.8
Completed in 8.415s
Configuring environment
MIBDIRS -> "/layers/paketo-buildpacks_php-dist/php/mibs"
PATH -> "/layers/paketo-buildpacks_php-dist/php/sbin:$PATH"
PHP_API -> "20190902"
PHP_EXTENSION_DIR -> "/layers/paketo-buildpacks_php-dist/php/lib/php/extensions/no-debug-non-zts-20190902"
PHP_HOME -> "/layers/paketo-buildpacks_php-dist/php"
PHP Composer Buildpack 0.0.114
1.10.9: Contributing to layer
Downloading from https://buildpacks.cloudfoundry.org/dependencies/composer/composer_1.10.9_linux_noarch_any-stack_70d6b9c3.phar
Verifying checksum
Expanding to /layers/paketo-buildpacks_php-composer/composer
PHP Composer Cache e57a3520f2fcb109f78c013afc32e8c9178ebda4c9b9e14a706c666172c8902a: Contributing to layer
PHP Composer 420d03ee0e1bdb2aca5aaed1c80b7c7947df323e6ca419706617460e93d8ec6f: Contributing to layer
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 61 installs, 0 updates, 0 removals
- Installing composer/installers (v1.9.0): Downloading (100%)
- Installing drupal/core-composer-scaffold (8.9.3): Downloading (100%)
- Installing drupal/core-project-message (8.9.3): Downloading (100%)
- Installing typo3/phar-stream-wrapper (v3.1.4): Downloading (100%)
- Installing symfony/polyfill-ctype (v1.17.0): Downloading (100%)
- Installing twig/twig (v1.42.5): Downloading (100%)
- Installing symfony/yaml (v3.4.41): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.17.0): Downloading (100%)
- Installing symfony/translation (v3.4.41): Downloading (100%)
- Installing symfony/validator (v3.4.41): Downloading (100%)
- Installing symfony/serializer (v3.4.41): Downloading (100%)
- Installing symfony/routing (v3.4.41): Downloading (100%)
- Installing paragonie/random_compat (v9.99.99): Downloading (100%)
- Installing symfony/polyfill-php70 (v1.17.0): Downloading (100%)
- Installing symfony/http-foundation (v3.4.41): Downloading (100%)
- Installing psr/http-message (1.0.1): Downloading (100%)
- Installing symfony/psr-http-message-bridge (v1.1.2): Downloading (100%)
- Installing symfony/process (v3.4.41): Downloading (100%)
- Installing symfony/polyfill-util (v1.17.0): Downloading (100%)
- Installing symfony/polyfill-php72 (v1.17.0): Downloading (100%)
- Installing symfony/polyfill-php56 (v1.17.0): Downloading (100%)
- Installing symfony/polyfill-intl-idn (v1.17.0): Downloading (100%)
- Installing symfony/polyfill-iconv (v1.17.0): Downloading (100%)
- Installing symfony/event-dispatcher (v3.4.41): Downloading (100%)
- Installing psr/log (1.1.3): Downloading (100%)
- Installing symfony/debug (v3.4.41): Downloading (100%)
- Installing symfony/http-kernel (v3.4.41): Downloading (100%)
- Installing psr/container (1.0.0): Downloading (100%)
- Installing symfony/dependency-injection (v3.4.41): Downloading (100%)
- Installing symfony/console (v3.4.41): Downloading (100%)
- Installing symfony/class-loader (v3.4.41): Downloading (100%)
- Installing symfony-cmf/routing (1.4.1): Downloading (100%)
- Installing stack/builder (v1.0.5): Downloading (100%)
- Installing ralouphie/getallheaders (3.0.3): Downloading (100%)
- Installing pear/pear_exception (v1.0.1): Downloading (100%)
- Installing pear/console_getopt (v1.4.3): Downloading (100%)
- Installing pear/pear-core-minimal (v1.10.10): Downloading (100%)
- Installing pear/archive_tar (1.4.9): Downloading (100%)
- Installing masterminds/html5 (2.3.0): Downloading (100%)
- Installing laminas/laminas-zendframework-bridge (1.0.4): Downloading (100%)
- Installing laminas/laminas-stdlib (3.2.1): Downloading (100%)
- Installing laminas/laminas-escaper (2.6.1): Downloading (100%)
- Installing laminas/laminas-feed (2.12.2): Downloading (100%)
- Installing laminas/laminas-diactoros (1.8.7p2): Downloading (100%)
- Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)
- Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
- Installing guzzlehttp/guzzle (6.5.4): Downloading (100%)
- Installing doctrine/lexer (1.0.2): Downloading (100%)
- Installing egulias/email-validator (2.1.17): Downloading (100%)
- Installing easyrdf/easyrdf (0.9.1): Downloading (100%)
- Installing doctrine/inflector (v1.2.0): Downloading (100%)
- Installing doctrine/collections (v1.4.0): Downloading (100%)
- Installing doctrine/cache (v1.6.2): Downloading (100%)
- Installing doctrine/annotations (v1.4.0): Downloading (100%)
- Installing doctrine/common (v2.7.3): Downloading (100%)
- Installing composer/semver (1.5.1): Downloading (100%)
- Installing asm89/stack-cors (1.3.0): Downloading (100%)
- Installing drupal/core (8.9.3): Downloading (100%)
- Installing drupal/core-recommended (8.9.3)
- Installing drupal/token (1.7.0): Downloading (100%)
- Installing drupal/metatag (1.14.0): Downloading (100%)
Generating autoload files
23 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
* Homepage: https://www.drupal.org/project/drupal
* Support:
* docs: https://www.drupal.org/docs/user_guide/en/index.html
* chat: https://www.drupal.org/node/314178
PHP Web Buildpack 0.0.123
PHP Web 108eb332e2f4ecdd7724ccffc07a2c64c4e54b2b296338eb5c69f9a42096ab0b: Contributing to layer
Configuring PHP Application
Using feature -- PHP
Writing PHPRC to shared
Writing PHP_INI_SCAN_DIR to shared
Using feature -- Nginx
Using feature -- PhpFpm
Using feature -- ProcMgr
Process types:
web: procmgr /layers/paketo-buildpacks_php-web/php-web/procs.yml
---> Drupal autoload reset Buildpack
---> Drupal npm Buildpack
/cnb/buildpacks/shapeblock-buildpacks_drupal-npm-run/0.0.1/bin/build: line 6: npm: command not found
ERROR: failed to build: exit status 127
ERROR: failed to build: failed with status code: 145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment