Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicoverbruggen/docker-php71
Dockerfile of my php71 image
https://github.com/nicoverbruggen/docker-php71
dockerfile gitlab laravel
Last synced: 13 days ago
JSON representation
Dockerfile of my php71 image
- Host: GitHub
- URL: https://github.com/nicoverbruggen/docker-php71
- Owner: nicoverbruggen
- Created: 2018-01-11T12:42:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T09:09:20.000Z (over 6 years ago)
- Last Synced: 2024-11-22T13:36:23.329Z (2 months ago)
- Topics: dockerfile, gitlab, laravel
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# docker-php71
## What is this?
This is a custom build based on PHP 7.1's docker image, with changes to make Laravel back-end testing easily possible.
## Where can I find it?
You can find the image on Docker Hub here: https://hub.docker.com/r/nicoverbruggen/php71/.
## GitLab CI
For example, if you are running GitLab, you can use `.gitlab-ci` on your custom GitLab instance:
```
image: nicoverbruggen/php71:latestcache:
paths:
- vendor/
- node_modules/tests:
script:
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
- yarn install
- yarn run dev
- vendor/bin/phpunit -v --configuration phpunit.ci.xml --coverage-text --colors=never
after_script:
- cat storage/logs/laravel.log 2>/dev/null
```This will allow automatic tests of your application to occur.
A few notes:
- Front-end testing w/ Laravel Dusk is not supported in this version.
- This container ships with `npm` and `yarn`.## How can I build this myself?
Use the Dockerfile, customize it as desired and build it!
Of course, you must replace `nicoverbruggen/php71` with something else if you want to publish your customized version yourself.
docker build -t nicoverbruggen/php71 .
docker push nicoverbruggen/php71If you want to tag the current version (let's say... `1.2`) based on the latest version you just pushed:
docker image tag nicoverbruggen/php71:latest nicoverbruggen/php71:1.2
docker push nicoverbruggen/php71:1.2Anyone can run it afterwards:
docker run nicoverbruggen/php71
You can also attach to the container w/ bash:
docker run -i -t nicoverbruggen/php71 /bin/bash