By andypost on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
production
Issue links:
Description:
Following images used for Core and Contrib CI are been slimmed down to minimize download/unpack size/costs
- drupalci/php-8.1-apache
- drupalci/php-8.2-apache
- drupalci/php-8.3-apache
- drupalci/php-8.3-ubuntu-apache
Was was using
- removing of build tools, consider to use special image or file issue to add required extension to base images (memcached/mongodb/redis/xmlrpc)
- using multi-stage builds
If your pipeline require to install extra extension (usually with extra libraries) use following addition to Gitlab CI script
# install build dependencies
- apt-get update && apt-get install -y $PHPIZE_DEPS libbrotli-dev
# pull and build extension https://www.php.net/manual/install.pecl.pear.php
- pecl install brotli
# enable new extension
- docker-php-ext-enable brotli
# start or re-start apache server
Further optimizations #3387737: Split PHP image into php(cli/apache) and yarn(node/nightwatch) and versioning #3404082: Adopt (semver) versioning for DrupalCi images
Impacts:
Module developers
Site templates, recipes and distribution developers