File tree 4 files changed +29
-4
lines changed
4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change
1
+ config /parameters.yml
1
2
vendor
Original file line number Diff line number Diff line change 1
1
FROM php:7.0-apache
2
2
3
- # Copy whole project
3
+ # Copy the whole project into /var/www/html
4
+ COPY / /var/www/html
5
+
4
6
# Copy parameters.docker.yml into parameters.yml
5
- COPY / /var/www/html/
7
+ RUN chown -R www-data:www-data /var/www/html
8
+ RUN chmod 0775 /var/www/html
9
+ RUN touch /var/www/html/config/parameters.yml
6
10
COPY config/parameters.docker.yml /var/www/html/config/parameters.yml
11
+
7
12
WORKDIR /var/www/html/
8
13
9
14
# Composer
Original file line number Diff line number Diff line change @@ -509,15 +509,32 @@ memcached_parameters:
509
509
510
510
### 2. Run the project with Docker
511
511
512
- You can simple run the project with [Docker](https://www.docker.com/):
512
+ You can run the project with [Docker](https://www.docker.com/).
513
+
514
+ **STEP1: Make the build**
513
515
514
516
` ` `
515
517
docker-compose build
518
+ ```
519
+
520
+ ** STEP2: Raise the app**
516
521
522
+ ```
517
523
docker-compose up -d
518
524
```
519
525
520
- Then, enter in the container and run the tests.
526
+ ** STEP3: Enter in the docker container**
527
+
528
+ ```
529
+ docker exec -it inmemorylist_app_1 bash
530
+ ```
531
+
532
+ ** STEP4: Run the tests in the container**
533
+
534
+ ```
535
+ vendor/bin/phpunit
536
+ ```
537
+
521
538
522
539
## Built With
523
540
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ services:
6
6
links :
7
7
- redis:redis
8
8
- memcached:memcached
9
+ volumes :
10
+ - /var/www/html
9
11
ports :
10
12
- " 5000:80"
11
13
You can’t perform that action at this time.
0 commit comments