Marvellous TeamCity Server with PHP CI Tools (see below). This build is based on official TeamCity Agent Docker build.
Has the base install of everything required for basic PHP testing out of the box. Need to add something? Submit a pull request!
- php7.4-cli
- php-pear
- php7.4-curl
- php7.4-dev
- php7.4-gd
- php7.4-mbstring
- php7.4-zip
- php7.4-mysql
- php7.4-xml
- php7.4-intl
- php7.4-pgsql
- php7.4-json
- php7.4-imagick
- php7.4-xdebug
- php7.4-sqlite
We recommend using Apache Ant, and example build.xml
file is included in the docs folder.
To use in teamcity, run the build.xml
file using the Apache Ant build step. This automatically runs all the basic tests included in the container, along with automatically downloading the .phar
files required for extra testing that is not supported via composer.
- Pull image
docker pull darkgoldblade01/teamcity-agent-php
optional - You will need teamcity-agent to run builds.
- Run the container
docker run -itd --privileged --name=teamcity-php-1 -e SERVER_URL="http://localhost:8111" -v <path to agent config folder>:/data/teamcity_agent/conf darkgoldblade01/teamcity-agent-php
- Pull the new image
docker pull darkgoldblade01/teacity-agent-php:latest
- Remove the old containers
- Run the new containers
docker run -itd --privileged --name=teamcity-php-1 -e SERVER_URL="http://localhost:8111" -v <path to agent config folder>:/data/teamcity_agent/conf darkgoldblade01/teamcity-agent-php
This is a fork from alekspankov/teamcity-agent-php, to upgrade to PHP7.4, and add in more of the core features required for Laravel testing.