#!/bin/sh
if [ ! -e /etc/orchestrator.conf.json ] ; then
cat <<EOF > /etc/orchestrator.conf.json
{
  "Debug": true,
  "ListenAddress": ":3000",
  "MySQLTopologyUser": "${ORC_TOPOLOGY_USER:-:orchestrator}",
  "MySQLTopologyPassword": "${ORC_TOPOLOGY_PASSWORD:-:orchestrator}",
  "MySQLOrchestratorHost": "${ORC_DB_HOST:-db}",
  "MySQLOrchestratorPort": ${ORC_DB_PORT:-3306},
  "MySQLOrchestratorDatabase": "${ORC_DB_NAME:-orchestrator}",
  "MySQLOrchestratorUser": "${ORC_USER:-orc_server_user}",
  "MySQLOrchestratorPassword": "${ORC_PASSWORD:-orc_server_password}"
}
EOF
fi

exec /usr/local/orchestrator/orchestrator http

#!/bin/sh
if [ ! -e /etc/orchestrator.conf.json ] ; then
cat <<EOF > /etc/orchestrator.conf.json
{
  "Debug": true,
  "ListenAddress": ":3000",
  "MySQLTopologyUser": "${ORC_TOPOLOGY_USER:-orchestrator}",
  "MySQLTopologyPassword": "${ORC_TOPOLOGY_PASSWORD:-orchestrator}",
  "MySQLOrchestratorHost": "${ORC_DB_HOST:-db}",
  "MySQLOrchestratorPort": ${ORC_DB_PORT:-3306},
  "MySQLOrchestratorDatabase": "${ORC_DB_NAME:-orchestrator}",
  "MySQLOrchestratorUser": "${ORC_USER:-orc_server_user}",
  "MySQLOrchestratorPassword": "${ORC_PASSWORD:-orc_server_password}"
}
EOF
fi

exec /usr/local/orchestrator/orchestrator http

Fix default config for docker image
Fix default config for docker image
