You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
880 B

  1. $scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
  2. Write-Host "Current script directory is $scriptPath" -ForegroundColor Yellow
  3. #*** Ordering service image ***
  4. $orderingPath = $scriptPath + "\src\Services\Ordering"
  5. Write-Host "orderingPath is $orderingPath" -ForegroundColor Yellow
  6. $orderingApiPathToJson = $orderingPath + "\Ordering.API\project.json"
  7. Write-Host "orderingApiPathToJson is $orderingApiPathToJson" -ForegroundColor Yellow
  8. $orderingApiPathToPub = $scriptPath + "\pub\ordering"
  9. Write-Host "orderingApiPathToPub is $orderingApiPathToPub" -ForegroundColor Yellow
  10. Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
  11. dotnet restore $orderingPath
  12. dotnet build $orderingApiPathToJson
  13. dotnet publish $orderingApiPathToJson -o $orderingApiPathToPub
  14. docker build -t eshop/ordering.api $orderingPathToPub