mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	Updated docker-compose info
This commit is contained in:
		
							parent
							
								
									bcd1e058eb
								
							
						
					
					
						commit
						4b2e42b2a1
					
				
					 1 changed files with 4 additions and 6 deletions
				
			
		
							
								
								
									
										10
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
										
									
									
									
								
							|  | @ -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" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue