Add a Dockerfile for a PHP5.6 dev environment #233
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I didn't have a development setup running PHP5.6 so I put one together in the
form of the php56.Dockerfile.
Build the dockerfile:
docker build -f php56.Dockerfile -t php-mf2:5.6 .
Run the container and launch bash:
docker run -it --rm php-mf2:5.6 bash
I mostly need this to run the test suite, so I added some scripts into
composer.json for phpcs and phpunit w/ code coverage. The container will run
the check-and-test-all script automatically if no other script is provided:
docker run -it --rm php-mf2:5.6