1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash if [ -z "$SERVICE_IP" ]; then export SERVICE_IP=`hostname -i` fi if [ -z "$MYSQL_ROOT_PASSWORD" ]; then export MYSQL_ROOT_PASSWORD="root" fi date > init.log echo "SERVICE_IP=$SERVICE_IP" >> init.log echo "MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD" >> init.log # Start the microservice ./instance_run.sh