https://github.com/atymic/docker-php-runner
Full featured PHP runner for PHP CI/CD builds & deployments.
https://github.com/atymic/docker-php-runner
continuous-delivery continuous-integration deployer deployment docker php
Last synced: about 1 month ago
JSON representation
Full featured PHP runner for PHP CI/CD builds & deployments.
- Host: GitHub
- URL: https://github.com/atymic/docker-php-runner
- Owner: atymic
- Created: 2019-08-29T06:05:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-29T10:38:58.000Z (over 5 years ago)
- Last Synced: 2025-03-17T01:51:11.218Z (about 2 months ago)
- Topics: continuous-delivery, continuous-integration, deployer, deployment, docker, php
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Runner
These docker images are meant for testing, building & deploying PHP code from CI tools that support docker images.
You shouldn't use the images to run production servers.## Versions
### PHP 7.2
`atymic/php72-runner`

### PHP 7.3
`atymic/php73-runner`

## Using the image
### Gitlab
This is an example Gitlab pipline. You'll probably need to customise it for your purposes```yaml
stages:
- build
- deploybuild:php:
image: atymic/php73-runner
stage: build
script:
- phpcs
- phan # AST extension is installed
- ./vendor/bin/phpunit # or use local versiondeploy:
stage: deploy
image: atymic/php73-runner
before_script:
- ssh-add <(echo "$PRIVATE_KEY")
script:
- dep deploy production --tag=$CI_COMMIT_REF_NAME -vvv
only:
- master
```## Features
- Pre-built with almost all extensions
- Use composer github token to avoid rate limits (`$COMPOSER_GITHUB`)
- Set container time zone (`$TIMEZONE`)
- Optional Xdebug support (`WITH_XDEBUG=true`)
- Node, NPM & Yarn installed (but you should use a dedicated image for building JS/CSS if possible)
- Common PHP build, linting, analysis and deployment tools baked in:
- `phpunit`
- `phpmd`
- `php_codesniffer`
- `phpstan`
- `psalm`
- `phan`
- `deployer` (& recipes)
- Deployment tools (`rsync`, `ssh-agent`, `git`)## Credits
These images are based on [ambroisemaupate's work.](https://github.com/ambroisemaupate/docker/)