From a98c690a08752faf8909a3a7d92de0cef809824b Mon Sep 17 00:00:00 2001 From: Anton Zimin Date: Thu, 11 May 2017 22:19:51 +0700 Subject: [PATCH] Update Docker docs #30 --- INSTALL.md | 9 +++++++++ scripts/DockerTasks.ps1 | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 3dc02692..2076dde8 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -37,3 +37,12 @@ iwr https://raw.githubusercontent.com/saritasa/SaritasaTools/develop/scripts/Sar ``` After that the "Saritasa Code Rules" will be available in "Code Analysis" tab in project properties. All Saritasa.Tools project uses relative path to ruleset within repository. + +Run Samples in Docker +--------------------- + +``` +PS psake docker-run-all +``` + +See IP addresses of running web sites in output. diff --git a/scripts/DockerTasks.ps1 b/scripts/DockerTasks.ps1 index 7893a0e9..fff5e128 100644 --- a/scripts/DockerTasks.ps1 +++ b/scripts/DockerTasks.ps1 @@ -69,4 +69,10 @@ Task docker-run-all -depends docker-boringwarehouse, docker-zergrushco ` { Exec { docker-compose -f "$samples\Saritasa.BoringWarehouse\docker-compose.yml" up -d } Exec { docker-compose -f "$samples\ZergRushCo.Todosya\docker-compose.yml" up -d } + + $ipAddress = Exec { docker inspect saritasaboringwarehouse_web_1 -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' } + Write-Information "Saritasa.BoringWarehouse: http://$ipAddress" + + $ipAddress = Exec { docker inspect zergrushcotodosya_web_1 -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' } + Write-Information "ZergRushCo.Todosya: http://$ipAddress" }