Sign inSign up

ufirstgroup/php-builder

By ufirstgroup

•Updated over 10 years ago

Allows developers to build PHP projects with composer without the need to install PHP locally.

Artifact
Image
0

2.3K

ufirstgroup/php-builder repository overview

⁠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

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) $@

Tag summary

Content type

Unrecognized

Digest

Size

196.8 MB

Last updated

over 10 years ago

docker pull ufirstgroup/php-builder