Public Repository

Last pushed: a year ago
Short Description
Allows developers to build PHP projects with composer without the need to install PHP locally.
Full Description

UFirst Docker PHP builder

This PHP builder docker image allows developers to build PHP projects with composer without the need to install PHP locally.

Usage

Run any composer command by running the image ufirtgroup/php-builder.

  • Mount the source folder as volume to source.
  • You should define the ENV variable USER_ID to be your local user id

Example

docker run -it \
  -e "USER_ID=$(id -u)" \
  -v $PWD/phpapp:/source \
  ufirstgroup/php-builder \
  composer install

Recommended Project Setup

Set up your project as follows:

  • Make sure everybody adds ./bin permanently to its $PATH ENV variable.
  • In you project root, create a folder ./bin
  • Create an executable file called composer inside ./bin with the following contend (change according to your config):
docker run -it \
  -e "USER_ID=$(id -u)" \
  -v $PWD/phpapp:/source \
  ufirstgroup/php-builder \
  $(basename $0) $@
Docker Pull Command
Owner
ufirstgroup

Comments (0)