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.

32 lines
1.4 KiB

  1. # rootPath: Root path of the repo (where docker-compose*.yml are). If not passed ../cli-windows/ is assumed
  2. # buildBits: If the projects must be built before. Default value: $true
  3. # customEventBusLoginPassword: If a custom RabbitMQ image is used that do not use the default user login/pwd. Default: $false (means assume use default spring2/rabbitmq image)
  4. Param(
  5. [parameter(Mandatory=$false)][string] $rootPath,
  6. [parameter(Mandatory=$false)][bool] $customEventBusLoginPassword=$false,
  7. [parameter(Mandatory=$false)][bool]$buildBits=$true
  8. )
  9. $scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
  10. if ([string]::IsNullOrEmpty($rootPath)) {
  11. $rootPath = "$scriptPath\.."
  12. }
  13. Write-Host "Root path used is $rootPath" -ForegroundColor Yellow
  14. if ($buildBits) {
  15. & $scriptPath\build-bits.ps1 -rootPath $rootPath
  16. }
  17. $env:ESHOP_EXTERNAL_DNS_NAME_OR_IP = "10.0.75.1"
  18. $env:ESHOP_AZURE_STORAGE_CATALOG_URL ="http://10.0.75.1:5101/api/v1/catalog/items/[0]/pic/"
  19. $env:ESHOP_AZURE_STORAGE_MARKETING_URL ="http://10.0.75.1:5110/api/v1/campaigns/[0]/pic/"
  20. if (-Not $customEventBusLoginPassword) {
  21. docker-compose -f "$rootPath\docker-compose-windows.yml" -f "$rootPath\docker-compose.override.yml" -f "$rootPath\docker-compose.override.windows.yml" up
  22. }
  23. else {
  24. docker-compose -f "$rootPath\docker-compose-windows.yml" -f "$rootPath\docker-compose.override.yml" up
  25. }