forked from TheRestartProject/RepairDirectory
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added xdebug container to the mix in order to run
unit tests on with codecoverage. added a couple of new servers to docker-compose to run display html for codecoverage and phpunit docs
- Loading branch information
1 parent
ea323d6
commit 015ba02
Showing
7 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ npm-debug.log | |
yarn-error.log | ||
composer.phar | ||
.env | ||
/reports/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
cd docker | ||
docker-compose run --rm xdebug php $@ | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,37 @@ services: | |
- [email protected] | ||
networks: | ||
- proxy-tier | ||
restart: always | ||
|
||
codecoverage: | ||
image: nginx | ||
container_name: restartproject_codecoverage | ||
volumes: | ||
- ../reports/codecoverage:/usr/share/nginx/html:ro | ||
environment: | ||
- VIRTUAL_HOST=cc.restart-project.local | ||
- LETSENCRYPT_HOST=cc.restart-project.local | ||
- [email protected] | ||
- NGINX_HOST=cc.restart-project.local | ||
- NGINX_PORT=80 | ||
networks: | ||
- proxy-tier | ||
restart: always | ||
|
||
docs: | ||
image: nginx | ||
container_name: restartproject_docs | ||
volumes: | ||
- ../reports/docs:/usr/share/nginx/html:ro | ||
environment: | ||
- VIRTUAL_HOST=docs.restart-project.local | ||
- LETSENCRYPT_HOST=docs.restart-project.local | ||
- [email protected] | ||
- NGINX_HOST=docs.restart-project.local | ||
- NGINX_PORT=80 | ||
networks: | ||
- proxy-tier | ||
restart: always | ||
|
||
web: | ||
depends_on: | ||
|
@@ -76,6 +107,22 @@ services: | |
networks: | ||
- proxy-tier | ||
|
||
xdebug: | ||
depends_on: | ||
- database | ||
- maildev | ||
build: ./xdebug | ||
image: restartproject_xdebug | ||
container_name: restartproject_xdebug | ||
working_dir: /app | ||
volumes: | ||
- ../:/app | ||
environment: | ||
- XDEBUG_CONFIG="idekey=PHPSTORM" | ||
command: ["php", "--version"] | ||
networks: | ||
- proxy-tier | ||
|
||
composer: | ||
depends_on: | ||
- database | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM restartproject_php | ||
|
||
RUN apk update \ | ||
&& apk add autoconf g++ make \ | ||
&& pecl install xdebug \ | ||
&& docker-php-ext-enable xdebug \ | ||
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters