1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

Updated docker-compose info

This commit is contained in:
Leonardo Lima 2020-11-11 14:14:35 -03:00
parent bcd1e058eb
commit 4b2e42b2a1

View file

@ -149,7 +149,7 @@ docker build . -t modern-cpp-starter
docker run modern-cpp-starter
```
Running tests
Running tests.
```bash
docker build . -t modern-cpp-starter
@ -157,23 +157,21 @@ docker build . -t modern-cpp-starter
docker run modern-cpp-starter sh -c "./build/test/GreeterTests"
```
### Build and Run Docker Compose
The docker-compose can be used to manage a multi-container applications. Since this container builds all targets, you can build any specific targer passing its name after "sh -c".
Running all containers
Running all containers.
```bash
docker-compose up --build
```
Running only your project
Running only your project.
```bash
docker-compose run application
```
Runing tests
Runing tests.
```bash
docker-compose run application sh -c "./build/test/GreeterTests"