Skip to content
Source code for Mezzio Example blog post
PHP Dockerfile
Branch: master
Clone or download
Latest commit 1cda481 Jan 19, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
data
public
src/App/src
test
.gitignore
.php_cs.dist
Dockerfile
LICENSE.md
README.md
composer.json
composer.lock
phpcs.xml.dist
phpunit.xml.dist

README.md

Mezzio Doctrine OAuth2 Example

Source code for https://marc.guyer.me/posts/mezzio-example/introduction

Run tests

Using Global Composer

composer test

Using Docker

A DockerFile is included in the root of this project that can be used to create a Docker image. Using that Docker image, you can then run tests using the php version specified by the DockerFile.

Create Docker Image

docker build -t php73 .

Run Tests in Docker Container

docker run --rm --interactive --tty --volume $PWD:/app --user $(id -u):$(id -g) php73 composer test
You can’t perform that action at this time.