Skip to content

PimLab/docker-composer

 
 

Repository files navigation

Composer Docker with PHP

This is used to run latest and previous Version of Composer with different PHP Versions.

Tags

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!

How to Update

To update the repository you easily change the Makefile on top of the file.

Change the latest Version

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".

Example

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
...

Remove old Version

If there is a Version of Composer which is older then the time self, remove if from "COMPOSER_BRANCHES".

Add or Remove a PHP Version

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...
...

Use Make / Makefile

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

Sources

More Information of Composer can be find of Composer Website
Based on Composer Docker

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 55.2%
  • Shell 37.1%
  • Makefile 7.7%