Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

final-gene/docker-hub-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Composer

CircleCI Codacy Badge

❗ This image is outdated. Please use the official composer image

This is a image to run composer with the hirak/prestissimo package.

How to use this image

Run the composer image:

docker run \
    --rm \
    --interactive \
    --tty \
    --volume "$(pwd)":/app \
    finalgene/composer install

You can mount the Composer home directory from your host inside the Container to share caching and configuration files:

docker run \
    --rm \
    --interactive \
    --tty \
    --volume "$(pwd)":/app \
    --volume ${COMPOSER_HOME}:/cache/.composer \
    finalgene/composer install

By default, Composer runs as root inside the container. This can lead to permission issues on your host filesystem. You can run Composer as your local user:

docker run \
    --rm \
    --interactive \
    --tty \
    --volume "$(pwd)":/app \
    --user $(id -u):$(id -g) \
    finalgene/composer install

For further information have a look at the official composer image.

Quick reference