vitess.io/vitess@v0.16.2/docker/mini/orchestrator-up.sh (about) 1 #!/bin/bash 2 3 source ./env.sh 4 5 echo "- Configuring orchestrator with given topology server and credentials..." 6 cp /etc/orchestrator.conf.json /tmp/ 7 sed -i /tmp/orchestrator.conf.json -e "s/DISCOVERY_SEED_PLACEHOLDER/$TOPOLOGY_SERVER/g" 8 sed -i /tmp/orchestrator.conf.json -e "s/MYSQL_TOPOLOGY_USER_PLACEHOLDER/$TOPOLOGY_USER/g" 9 sed -i /tmp/orchestrator.conf.json -e "s/MYSQL_TOPOLOGY_PASSWORD_PLACEHOLDER/$TOPOLOGY_PASSWORD/g" 10 11 cat /tmp/orchestrator.conf.json > /etc/orchestrator.conf.json 12 rm /tmp/orchestrator.conf.json 13 14 ORCHESTRATOR_LOG="${VTDATAROOT}/tmp/orchestrator.out" 15 16 echo "- Starting orchestrator... Logfile is $ORCHESTRATOR_LOG" 17 18 cd /usr/local/orchestrator 19 ./orchestrator http > $ORCHESTRATOR_LOG 2>&1 &