Build: Docker: Added installation type args to build.backend.docker.ps1
This commit is contained in:
parent
9edac50b3d
commit
d900d2ebdf
@ -27,6 +27,14 @@ docker compose -f "$DockerDir\db.yml" up -d
|
|||||||
Write-Host "Build backend services (to `publish/` folder)" -ForegroundColor Green
|
Write-Host "Build backend services (to `publish/` folder)" -ForegroundColor Green
|
||||||
& "$PSScriptRoot\install\common\build-services.ps1"
|
& "$PSScriptRoot\install\common\build-services.ps1"
|
||||||
|
|
||||||
|
$Env:DOCUMENT_SERVER_IMAGE_NAME = "onlyoffice/documentserver-de:latest"
|
||||||
|
$Env:INSTALLATION_TYPE = "ENTERPRISE"
|
||||||
|
|
||||||
|
if ($args[0] -eq "--community" ) {
|
||||||
|
$Env:DOCUMENT_SERVER_IMAGE_NAME = "onlyoffice/documentserver:latest"
|
||||||
|
$Env:INSTALLATION_TYPE = "COMMUNITY"
|
||||||
|
}
|
||||||
|
|
||||||
Set-Location -Path $DockerDir
|
Set-Location -Path $DockerDir
|
||||||
|
|
||||||
Write-Host "Run migration and services" -ForegroundColor Green
|
Write-Host "Run migration and services" -ForegroundColor Green
|
||||||
@ -34,7 +42,6 @@ $Env:ENV_EXTENSION="dev"
|
|||||||
$Env:Baseimage_Dotnet_Run="onlyoffice/4testing-docspace-dotnet-runtime:v1.0.0"
|
$Env:Baseimage_Dotnet_Run="onlyoffice/4testing-docspace-dotnet-runtime:v1.0.0"
|
||||||
$Env:Baseimage_Nodejs_Run="onlyoffice/4testing-docspace-nodejs-runtime:v1.0.0"
|
$Env:Baseimage_Nodejs_Run="onlyoffice/4testing-docspace-nodejs-runtime:v1.0.0"
|
||||||
$Env:Baseimage_Proxy_Run="onlyoffice/4testing-docspace-proxy-runtime:v1.0.0"
|
$Env:Baseimage_Proxy_Run="onlyoffice/4testing-docspace-proxy-runtime:v1.0.0"
|
||||||
$Env:DOCUMENT_SERVER_IMAGE_NAME="onlyoffice/documentserver-de:latest"
|
|
||||||
$Env:SERVICE_DOCEDITOR=$Doceditor
|
$Env:SERVICE_DOCEDITOR=$Doceditor
|
||||||
$Env:SERVICE_LOGIN=$Login
|
$Env:SERVICE_LOGIN=$Login
|
||||||
$Env:SERVICE_CLIENT=$Client
|
$Env:SERVICE_CLIENT=$Client
|
||||||
@ -45,4 +52,12 @@ $Env:DATA_DIR="$RootDir\Data"
|
|||||||
$Env:APP_URL_PORTAL=$PortalUrl
|
$Env:APP_URL_PORTAL=$PortalUrl
|
||||||
docker compose -f docspace.profiles.yml -f docspace.overcome.yml --profile migration-runner --profile backend-local up -d
|
docker compose -f docspace.profiles.yml -f docspace.overcome.yml --profile migration-runner --profile backend-local up -d
|
||||||
|
|
||||||
|
Write-Host "== Build params ==" -ForegroundColor Green
|
||||||
|
Write-Host "APP_URL_PORTAL: $PortalUrl" -ForegroundColor Blue
|
||||||
|
Write-Host "LOCAL IP: $LocalIp" -ForegroundColor Blue
|
||||||
|
Write-Host "SERVICE_DOCEDITOR: $Env:SERVICE_DOCEDITOR" -ForegroundColor Blue
|
||||||
|
Write-Host "SERVICE_LOGIN: $Env:SERVICE_LOGIN" -ForegroundColor Blue
|
||||||
|
Write-Host "SERVICE_CLIENT: $Env:SERVICE_CLIENT" -ForegroundColor Blue
|
||||||
|
Write-Host "INSTALLATION_TYPE: $Env:INSTALLATION_TYPE" -ForegroundColor Blue
|
||||||
|
|
||||||
Set-Location -Path $PSScriptRoot
|
Set-Location -Path $PSScriptRoot
|
Loading…
Reference in New Issue
Block a user