Skip to content

Docker container for GitLab CI/CD of PHP apps (with NodeJS)

License

Notifications You must be signed in to change notification settings

FiolaSoft/php-node-docker-build-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for running PHP on CI

APT packages added

  • curl
  • unzip
  • git
  • mysql-client
  • postgresql-client
  • redis-tools
  • nodejs
  • npm

PHP packages installed

  • bcmath
  • bz2
  • cli
  • curl
  • gd
  • imap
  • intl
  • json
  • mbstring
  • mcrypt (before php 7.2)
  • mysql
  • opcache
  • pgsql
  • readline
  • soap
  • sqlite3
  • xml
  • zip
  • redis

NPM packages globally installed

  • yarn
  • sass
  • less
  • minify
  • cross-env

Composer packages globally installed

Cache dirs redirected

  • NPM: /cache/npm
  • yarn: /cache/yarn
  • Composer: /cache/composer

You may want to set /cache dir as Docker image volume for faster CI build.

ENV variables changed/added

  • $PATH: added ~/.composer/vendor/bin
  • $COMPOSER_NO_INTERACTION: set to 1

Tags (and PHP version) available for Docker

  • 7.1
  • 7.2