Skip to content

Instantly share code, notes, and snippets.

@akerouanton
Last active November 14, 2019 22:18
Show Gist options
  • Save akerouanton/679b0128877b515e4efba88b33ee4d17 to your computer and use it in GitHub Desktop.
Save akerouanton/679b0128877b515e4efba88b33ee4d17 to your computer and use it in GitHub Desktop.
# syntax=akerouanton/webdf-builder:test9
type: php
fpm: true
version: 7.0.29

extensions:
  intl: "*"
  pdo_mysql: "*"
  soap: "*"

# These parameters are automatically set by webdf using the "symfony" integration
# source_dirs:
#   - './app'
#   - './src'
# extra_scripts:
#   - './bin/console'
#   - './web/app.php'

stateful_dirs:
  - './web/uploads'

config_files:
  fpm.conf: 'docker/app/fpm.conf'
  php.ini: 'docker/app/php.ini'

integrations:
  - symfony

stages:
  dev:
    dev: true

  prod:
    extensions:
      apcu: "*"
      opcache: "*"
    healthcheck: true
    integrations:
      - blackfire

  worker:
    derive_from: prod
✗ docker build --target prod -f webdf.yml .
[+] Building 146.8s (28/28) FINISHED                                                                                                                                                     
 => [internal] load build definition from webdf.yml                                                                                                                                 0.0s
 => => transferring dockerfile: 703B                                                                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                                                                   0.0s
 => => transferring context: 35B                                                                                                                                                    0.0s
 => resolve image config for docker.io/akerouanton/webdf-builder:test9                                                                                                              0.0s
 => CACHED docker-image://docker.io/akerouanton/webdf-builder:test9                                                                                                                 0.0s
 => load webdf config files from build context                                                                                                                                      0.0s
 => => transferring context: 737B                                                                                                                                                   0.0s
 => load composer files from build context                                                                                                                                          0.0s
 => => transferring context: 69B                                                                                                                                                    0.0s
 => docker-image://docker.io/library/composer:1.9.0                                                                                                                                 0.0s
 => load build context                                                                                                                                                              0.1s
 => => transferring context: 41.18kB                                                                                                                                                0.1s
 => load config files from build context                                                                                                                                            0.1s
 => => transferring context: 668B                                                                                                                                                   0.0s
 => Download https://github.com/NiR-/fcgi-client/releases/download/v0.1.0/fcgi-client.phar                                                                                          0.0s
 => Download https://blackfire.io/api/v1/releases/probe/php/linux/amd64/72                                                                                                          0.0s
 => docker-image://docker.io/library/php:7.0.29-fpm                                                                                                                                 0.0s
 => CACHED Copy /usr/bin/composer                                                                                                                                                   0.0s
 => Install system packages (git, libicu-dev, libpcre3-dev, libssl-dev, libxml2-dev, openssl, unzip, zlib1g-dev)                                                                   44.0s
 => Decompress https://blackfire.io/api/v1/releases/probe/php/linux/amd64/72                                                                                                        0.1s
 => Unpack https://blackfire.io/api/v1/releases/probe/php/linux/amd64/72                                                                                                            0.0s
 => Install PHP extensions (opcache, apcu, sockets, zip, intl, pdo_mysql, soap)                                                                                                    71.8s
 => Copy unpacked https://blackfire.io/api/v1/releases/probe/php/linux/amd64/72 to /usr/local/lib/php/extensions/no-debug-non-zts-20170718/blackfire.so                             0.1s
 => Copy https://github.com/NiR-/fcgi-client/releases/download/v0.1.0/fcgi-client.phar to /usr/local/bin/fcgi-client                                                                0.1s
 => mkdir /app                                                                                                                                                                      0.0s
 => mkdir /composer                                                                                                                                                                 0.0s
 => Copy docker/app/php.ini                                                                                                                                                         0.1s
 => Copy docker/app/fpm.conf                                                                                                                                                        0.1s
 => Copy composer.*                                                                                                                                                                 0.1s
 => Run composer install                                                                                                                                                           20.6s
 => Copy /                                                                                                                                                                          0.2s
 => Warm up Symfony Cache                                                                                                                                                           1.5s
 => exporting to image                                                                                                                                                              5.7s
 => => exporting layers                                                                                                                                                             5.7s
 => => writing image sha256:bfdd28affa19fb520b28a8bb0f463708ac5d97a831db97eb7d685d8e8fad9bcb                                                                                        0.0s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment