1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-31 22:21:13 +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 docker run modern-cpp-starter
``` ```
Running tests Running tests.
```bash ```bash
docker build . -t modern-cpp-starter 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" 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". 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 ```bash
docker-compose up --build docker-compose up --build
``` ```
Running only your project Running only your project.
```bash ```bash
docker-compose run application docker-compose run application
``` ```
Runing tests Runing tests.
```bash ```bash
docker-compose run application sh -c "./build/test/GreeterTests" docker-compose run application sh -c "./build/test/GreeterTests"