@@ -22,13 +22,26 @@ dotnet publish $webPathToJson -o $webPathToPub
2222$webSPAPathToJson = $scriptPath + " \src\Web\WebSPA\eShopOnContainers.WebSPA\project.json"
2323Write-Host " webSPAPathToJson is $webSPAPathToJson " - ForegroundColor Yellow
2424$webSPAPathToPub = $scriptPath + " \pub\webSPA"
25+ # $webSPAPathToNpmBat = $scriptPath + "\src\Web\WebSPA\eShopOnContainers.WebSPA\buildspa.bat"
2526Write-Host " webSPAPathToPub is $webSPAPathToPub " - ForegroundColor Yellow
2627
2728Write-Host " Restore Dependencies just in case as it is needed to run dotnet publish" - ForegroundColor Blue
2829dotnet restore $webSPAPathToJson
2930dotnet build $webSPAPathToJson
31+ # Start-Process "cmd.exe" "/c " + $webSPAPathToNpmBat
3032dotnet publish $webSPAPathToJson - o $webSPAPathToPub
3133
34+ # *** identitySvc image ***
35+ $identitySvcPathToJson = $scriptPath + " \src\Services\Identity\eShopOnContainers.Identity\project.json"
36+ Write-Host " identitySvcPathToJson is $identitySvcPathToJson " - ForegroundColor Yellow
37+ $identitySvcPathToPub = $scriptPath + " \pub\identity"
38+ Write-Host " identitySvcPathToPub is $identitySvcPathToPub " - ForegroundColor Yellow
39+
40+ Write-Host " Restore Dependencies just in case as it is needed to run dotnet publish" - ForegroundColor Blue
41+ dotnet restore $identitySvcPathToJson
42+ dotnet build $identitySvcPathToJson
43+ dotnet publish $identitySvcPathToJson - o $identitySvcPathToPub
44+
3245
3346# *** Catalog service image ***
3447$catalogPathToJson = $scriptPath + " \src\Services\Catalog\Catalog.API\project.json"
@@ -63,8 +76,10 @@ dotnet restore $basketPathToJson
6376dotnet build $basketPathToJson
6477dotnet publish $basketPathToJson - o $basketPathToPub
6578
79+ # *** build docker images ***
6680docker build - t eshop/ web $webPathToPub
6781docker build - t eshop/ catalog.api $catalogPathToPub
6882docker build - t eshop/ ordering.api $orderingPathToPub
6983docker build - t eshop/ basket.api $basketPathToPub
7084docker build - t eshop/ webspa $webSPAPathToPub
85+ docker build - t eshop/ identity $identitySvcPathToPub
0 commit comments