Evgeniy Antonyuk
67287d712c
* Add the ability to use an external service elasticsearch * Add the ability to use an external redis service * Add the ability to use an external rabbitmq service * Add the ability to use external mysql service * Add network creation in OCI * Implement non-use of host variable when connecting locally to containers * Add missing environments in .yml files * Add the ability to use external Docs service * Fix problem of a given host as a container name * Add the ability to configure the elasticsearch protocol * Add comments to the .env file * Fix migration-runner to mysql container connection error * Implement Docs configuration via external URL * Fix elasticsearch configuration parameter substitution
18 lines
580 B
Bash
Executable File
18 lines
580 B
Bash
Executable File
#!/bin/bash
|
|
|
|
MYSQL_HOST=${MYSQL_HOST:-${MYSQL_CONTAINER_NAME}}
|
|
MYSQL_DATABASE=${MYSQL_DATABASE:-"onlyoffice"}
|
|
MYSQL_USER=${MYSQL_USER:-"onlyoffice_user"}
|
|
MYSQL_PASSWORD=${MYSQL_PASSWORD:-"onlyoffice_pass"}
|
|
MIGRATION_TYPE=${MIGRATION_TYPE:-"STANDALONE"}
|
|
PARAMETERS="standalone=true"
|
|
|
|
sed -i "s!\"ConnectionString\".*!\"ConnectionString\": \"Server=${MYSQL_HOST};Database=${MYSQL_DATABASE};User ID=${MYSQL_USER};Password=${MYSQL_PASSWORD}\",!g" ./appsettings.runner.json
|
|
|
|
if [[ ${MIGRATION_TYPE} == "SAAS" ]]
|
|
then
|
|
PARAMETERS=""
|
|
fi
|
|
|
|
dotnet ASC.Migration.Runner.dll ${PARAMETERS}
|