aboutsummaryrefslogtreecommitdiffstats
path: root/docker/docker-entrypoint.sh
blob: dcfa22ad26f6812995cac75e3287532b206eb517 (plain)
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