Restore Ordering.API dependencies before build
This commit is contained in:
parent
c7e362ac67
commit
9d7c588fc5
@ -3,14 +3,16 @@
|
|||||||
Write-Host "Current script directory is $scriptPath" -ForegroundColor Yellow
|
Write-Host "Current script directory is $scriptPath" -ForegroundColor Yellow
|
||||||
|
|
||||||
#*** Ordering service image ***
|
#*** Ordering service image ***
|
||||||
$orderingPathToJson = $scriptPath + "\src\Services\Ordering\Ordering.API\project.json"
|
$orderingPath = $scriptPath + "\src\Services\Ordering"
|
||||||
Write-Host "orderingPathToJson is $orderingPathToJson" -ForegroundColor Yellow
|
Write-Host "orderingPath is $orderingPath" -ForegroundColor Yellow
|
||||||
$orderingPathToPub = $scriptPath + "\pub\ordering"
|
$orderingApiPathToJson = $orderingPath + "\Ordering.API\project.json"
|
||||||
Write-Host "orderingPathToPub is $orderingPathToPub" -ForegroundColor Yellow
|
Write-Host "orderingApiPathToJson is $orderingApiPathToJson" -ForegroundColor Yellow
|
||||||
|
$orderingApiPathToPub = $scriptPath + "\pub\ordering"
|
||||||
|
Write-Host "orderingApiPathToPub is $orderingApiPathToPub" -ForegroundColor Yellow
|
||||||
|
|
||||||
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
|
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
|
||||||
dotnet restore $orderingPathToJson
|
dotnet restore $orderingPath
|
||||||
dotnet build $orderingPathToJson
|
dotnet build $orderingApiPathToJson
|
||||||
dotnet publish $orderingPathToJson -o $orderingPathToPub
|
dotnet publish $orderingApiPathToJson -o $orderingApiPathToPub
|
||||||
|
|
||||||
docker build -t eshop/ordering.api $orderingPathToPub
|
docker build -t eshop/ordering.api $orderingPathToPub
|
@ -42,15 +42,17 @@ dotnet build $catalogPathToJson
|
|||||||
dotnet publish $catalogPathToJson -o $catalogPathToPub
|
dotnet publish $catalogPathToJson -o $catalogPathToPub
|
||||||
|
|
||||||
#*** Ordering service image ***
|
#*** Ordering service image ***
|
||||||
$orderingPathToJson = $scriptPath + "\src\Services\Ordering\Ordering.API\project.json"
|
$orderingPath = $scriptPath + "\src\Services\Ordering"
|
||||||
Write-Host "orderingPathToJson is $orderingPathToJson" -ForegroundColor Yellow
|
Write-Host "orderingPath is $orderingPath" -ForegroundColor Yellow
|
||||||
$orderingPathToPub = $scriptPath + "\pub\ordering"
|
$orderingApiPathToJson = $orderingPath + "\Ordering.API\project.json"
|
||||||
Write-Host "orderingPathToPub is $orderingPathToPub" -ForegroundColor Yellow
|
Write-Host "orderingApiPathToJson is $orderingApiPathToJson" -ForegroundColor Yellow
|
||||||
|
$orderingApiPathToPub = $scriptPath + "\pub\ordering"
|
||||||
|
Write-Host "orderingApiPathToPub is $orderingApiPathToPub" -ForegroundColor Yellow
|
||||||
|
|
||||||
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
|
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
|
||||||
dotnet restore $orderingPathToJson
|
dotnet restore $orderingPath
|
||||||
dotnet build $orderingPathToJson
|
dotnet build $orderingApiPathToJson
|
||||||
dotnet publish $orderingPathToJson -o $orderingPathToPub
|
dotnet publish $orderingApiPathToJson -o $orderingApiPathToPub
|
||||||
|
|
||||||
#*** Basket service image ***
|
#*** Basket service image ***
|
||||||
$basketPathToJson = $scriptPath + "\src\Services\Basket\Basket.API\project.json"
|
$basketPathToJson = $scriptPath + "\src\Services\Basket\Basket.API\project.json"
|
||||||
|
@ -40,15 +40,17 @@ dotnet build $catalogPathToJson
|
|||||||
dotnet publish $catalogPathToJson -o $catalogPathToPub
|
dotnet publish $catalogPathToJson -o $catalogPathToPub
|
||||||
|
|
||||||
#*** Ordering service image ***
|
#*** Ordering service image ***
|
||||||
$orderingPathToJson = $scriptPath + "\src\Services\Ordering\Ordering.API\project.json"
|
$orderingPath = $scriptPath + "\src\Services\Ordering"
|
||||||
Write-Host "orderingPathToJson is $orderingPathToJson" -ForegroundColor Yellow
|
Write-Host "orderingPath is $orderingPath" -ForegroundColor Yellow
|
||||||
$orderingPathToPub = $scriptPath + "\pub\ordering"
|
$orderingApiPathToJson = $orderingPath + "\Ordering.API\project.json"
|
||||||
Write-Host "orderingPathToPub is $orderingPathToPub" -ForegroundColor Yellow
|
Write-Host "orderingApiPathToJson is $orderingApiPathToJson" -ForegroundColor Yellow
|
||||||
|
$orderingApiPathToPub = $scriptPath + "\pub\ordering"
|
||||||
|
Write-Host "orderingApiPathToPub is $orderingApiPathToPub" -ForegroundColor Yellow
|
||||||
|
|
||||||
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
|
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
|
||||||
dotnet restore $orderingPathToJson
|
dotnet restore $orderingPath
|
||||||
dotnet build $orderingPathToJson
|
dotnet build $orderingApiPathToJson
|
||||||
dotnet publish $orderingPathToJson -o $orderingPathToPub
|
dotnet publish $orderingApiPathToJson -o $orderingApiPathToPub
|
||||||
|
|
||||||
#*** Basket service image ***
|
#*** Basket service image ***
|
||||||
$basketPathToJson = $scriptPath + "\src\Services\Basket\Basket.API\project.json"
|
$basketPathToJson = $scriptPath + "\src\Services\Basket\Basket.API\project.json"
|
||||||
|
@ -40,7 +40,6 @@ dotnet restore $identitySvcPathToJson
|
|||||||
dotnet build $identitySvcPathToJson
|
dotnet build $identitySvcPathToJson
|
||||||
dotnet publish $identitySvcPathToJson -o $identitySvcPathToPub
|
dotnet publish $identitySvcPathToJson -o $identitySvcPathToPub
|
||||||
|
|
||||||
|
|
||||||
#*** Catalog service image ***
|
#*** Catalog service image ***
|
||||||
$catalogPathToJson = $scriptPath + "\src\Services\Catalog\Catalog.API\project.json"
|
$catalogPathToJson = $scriptPath + "\src\Services\Catalog\Catalog.API\project.json"
|
||||||
Write-Host "catalogPathToJson is $catalogPathToJson" -ForegroundColor Yellow
|
Write-Host "catalogPathToJson is $catalogPathToJson" -ForegroundColor Yellow
|
||||||
@ -53,15 +52,17 @@ dotnet build $catalogPathToJson
|
|||||||
dotnet publish $catalogPathToJson -o $catalogPathToPub
|
dotnet publish $catalogPathToJson -o $catalogPathToPub
|
||||||
|
|
||||||
#*** Ordering service image ***
|
#*** Ordering service image ***
|
||||||
$orderingPathToJson = $scriptPath + "\src\Services\Ordering\Ordering.API\project.json"
|
$orderingPath = $scriptPath + "\src\Services\Ordering"
|
||||||
Write-Host "orderingPathToJson is $orderingPathToJson" -ForegroundColor Yellow
|
Write-Host "orderingPath is $orderingPath" -ForegroundColor Yellow
|
||||||
$orderingPathToPub = $scriptPath + "\pub\ordering"
|
$orderingApiPathToJson = $orderingPath + "\Ordering.API\project.json"
|
||||||
Write-Host "orderingPathToPub is $orderingPathToPub" -ForegroundColor Yellow
|
Write-Host "orderingApiPathToJson is $orderingApiPathToJson" -ForegroundColor Yellow
|
||||||
|
$orderingApiPathToPub = $scriptPath + "\pub\ordering"
|
||||||
|
Write-Host "orderingApiPathToPub is $orderingApiPathToPub" -ForegroundColor Yellow
|
||||||
|
|
||||||
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
|
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
|
||||||
dotnet restore $orderingPathToJson
|
dotnet restore $orderingPath
|
||||||
dotnet build $orderingPathToJson
|
dotnet build $orderingApiPathToJson
|
||||||
dotnet publish $orderingPathToJson -o $orderingPathToPub
|
dotnet publish $orderingApiPathToJson -o $orderingApiPathToPub
|
||||||
|
|
||||||
#*** Basket service image ***
|
#*** Basket service image ***
|
||||||
$basketPathToJson = $scriptPath + "\src\Services\Basket\Basket.API\project.json"
|
$basketPathToJson = $scriptPath + "\src\Services\Basket\Basket.API\project.json"
|
||||||
@ -83,7 +84,7 @@ docker rmi $(docker images -q)
|
|||||||
#*** build docker images ***
|
#*** build docker images ***
|
||||||
docker build -t eshop/web $webPathToPub
|
docker build -t eshop/web $webPathToPub
|
||||||
docker build -t eshop/catalog.api $catalogPathToPub
|
docker build -t eshop/catalog.api $catalogPathToPub
|
||||||
docker build -t eshop/ordering.api $orderingPathToPub
|
docker build -t eshop/ordering.api $orderingApiPathToPub
|
||||||
docker build -t eshop/basket.api $basketPathToPub
|
docker build -t eshop/basket.api $basketPathToPub
|
||||||
docker build -t eshop/webspa $webSPAPathToPub
|
docker build -t eshop/webspa $webSPAPathToPub
|
||||||
docker build -t eshop/identity $identitySvcPathToPub
|
docker build -t eshop/identity $identitySvcPathToPub
|
Loading…
x
Reference in New Issue
Block a user