2017-09-05 15:55:17 +02:00
# rootPath: Root path of the repo (where docker-compose*.yml are). If not passed ../cli-windows/ is assumed
# buildBits: If the projects must be built before. Default value: $true
# 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)
2017-09-04 19:07:53 +02:00
Param (
[ parameter ( Mandatory = $false ) ] [ string ] $rootPath ,
2017-09-05 15:55:17 +02:00
[ parameter ( Mandatory = $false ) ] [ bool ] $customEventBusLoginPassword = $false ,
2018-01-04 16:41:21 -08:00
[ parameter ( Mandatory = $false ) ] [ bool ] $buildBits = $false
2017-09-04 19:07:53 +02:00
)
2017-03-03 12:44:27 +01:00
$scriptPath = Split-Path $script:MyInvocation . MyCommand . Path
if ( [ string ] :: IsNullOrEmpty ( $rootPath ) ) {
$rootPath = " $scriptPath \.. "
}
Write-Host " Root path used is $rootPath " -ForegroundColor Yellow
2017-09-04 19:07:53 +02:00
if ( $buildBits ) {
& $scriptPath \ build-bits . ps1 -rootPath $rootPath
}
2017-09-05 15:55:17 +02:00
$env:ESHOP_EXTERNAL_DNS_NAME_OR_IP = " 10.0.75.1 "
$env:ESHOP_AZURE_STORAGE_CATALOG_URL = " http://10.0.75.1:5101/api/v1/catalog/items/[0]/pic/ "
$env:ESHOP_AZURE_STORAGE_MARKETING_URL = " http://10.0.75.1:5110/api/v1/campaigns/[0]/pic/ "
if ( -Not $customEventBusLoginPassword ) {
docker-compose -f " $rootPath \docker-compose-windows.yml " -f " $rootPath \docker-compose.override.yml " -f " $rootPath \docker-compose.override.windows.yml " up
}
else {
docker-compose -f " $rootPath \docker-compose-windows.yml " -f " $rootPath \docker-compose.override.yml " up
}