Skip to content

Commit

Permalink
Update Docker docs #30
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonZiminSaritasa committed May 11, 2017
1 parent 45769f4 commit a98c690
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
6 changes: 6 additions & 0 deletions scripts/DockerTasks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit a98c690

Please sign in to comment.