This is used to run latest and previous Version of Composer with different PHP Versions.
Composer | PHP 7.2 | PHP 7.3 | PHP 7.4 |
---|---|---|---|
2.0.0-alpha1 | pimlab/composer:2.0.0-alpha1-php7.2 | pimlab/composer:2.0.0-alpha1-php7.3 | pimlab/composer:2.0.0-alpha1-php7.4 |
latest | pimlab/composer:latest-php7.2 | pimlab/composer:latest-php7.3 | pimlab/composer:latest-php7.4 |
1.10.7 | pimlab/composer:1.10.7-php7.2 | pimlab/composer:1.10.7-php7.3 | pimlab/composer:1.10.7-php7.4 |
1.9.3 | pimlab/composer:1.9.3-php7.2 | pimlab/composer:1.9.3-php7.3 | pimlab/composer:1.9.3-php7.4 |
NOTICE: latest composer is version 1.x.x until first composer 2.x.x stable will released!
To update the repository you easily change the Makefile on top of the file.
To Change the latest Version of Composer change the value of "LATEST_COMPOSER" and add the new Version at the end to "COMPOSER_BRANCHES". After any change of a Version (Composer or PHP) don't forgot to run "make all".
Old Version
# Example
LATEST_COMPOSER = 1.9.0
COMPOSER_BRANCHES = 1.8.6 1.9.0
...
New Version
LATEST_COMPOSER = 1.9.1
COMPOSER_BRANCHES = 1.8.6 1.9.0 1.9.1
...
If there is a Version of Composer which is older then the time self, remove if from "COMPOSER_BRANCHES".
Yes, PHP Versions getting end of life, so we have to remove some of them time by time. To do this, remove or add the PHP Version in Makefile variable "PHP_VERSIONS".
...
PHP_VERSIONS = 7.1 7.2 7.3
COMPOSER_INSTALLER_URL ?= https://raw.github...
...
Command | Description |
---|---|
make all | Runs all steps in Makefile in the order "template", "build" and "test" |
make template | Removes all directories which created by Composer include subdirectories and recreated all needed Dockerfiles new. If you remove a Composer Version, you may have to delete the comparing Directory manually. |
make build | Runs docker build for every Composer Version with all PHP Versions to build the Docker Images |
make test | Test all created Docker-Images by running the Docker Image created before |
More Information of Composer can be find of Composer Website
Based on Composer Docker