This container image includes php-cli, composer and some essential php extensions
2.9K
This container image includes php-cli, composer and some essential php extensions to build Laravel project, which is mainly designed to use in Jenkins build machine.
Now latest system like Ubuntu 22.04 LTS is troublesome to install old PHP version, but I need specific versions of PHP and Composer to build some old projects.
docker run --rm -it --entrypoint sh crossrt/jenkins-php-composer
The images will tagged based on php and composer version. For example:
crossrt/jenkins-php-composer:7.2-2crossrt/jenkins-php-composer:7.2-1pipeline {
agent any
stages {
stage('Checkout code') {
// checkout your code
}
stage('Install dependencies') {
agent {
docker {
image 'crossrt/jenkins-php-composer:7.2-2.5'
reuseNode true
}
}
steps {
script {
sh 'composer install'
}
}
}
stage('Build') {
// continue your build here
}
}
}
Notes:
reuseNode is important because we need to make sure the container is mounting the directory where the code checkout.Content type
Image
Digest
sha256:b03728d06…
Size
39.5 MB
Last updated
over 2 years ago
docker pull crossrt/jenkins-php-composer