Updated docker configuration

This commit is contained in:
Kevin Frantz 2018-07-14 16:51:51 +02:00
parent 14fff41c96
commit d79616c3ae
5 changed files with 8 additions and 4 deletions

2
Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM php:7.2.2-apache
RUN docker-php-ext-install mysqli pdo pdo_mysql

View File

@ -31,10 +31,10 @@ existing colors.
## start
To run the program execute:
```bash
docker-compose up -d
bash ./start.sh
```
## test
To run the tests execute:
```bash
test.sh
bash ./test.sh
```

View File

@ -11,7 +11,7 @@ services:
ports:
- "9906:3306"
web:
image: php:7.2.2-apache
build: .
container_name: php_web
depends_on:
- db

2
start.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker-compose up -d

View File

@ -1,2 +1,2 @@
#!/bin/bash
(cd ./src && php -d memory_limit=128M vendor/bin/phpunit)
docker exec -ti php_web php -d memory_limit=128M vendor/bin/phpunit