diff options
author | LiZi <li.zi30@zte.com.cn> | 2018-04-16 04:05:48 -0400 |
---|---|---|
committer | LiZi <li.zi30@zte.com.cn> | 2018-04-16 04:06:03 -0400 |
commit | b6c7a698a58b1c64329377fd27f2a52a8f918e5e (patch) | |
tree | 1132b20a0e24b4fa7004a8ab317ec899e17f5b66 /docker/docker-entrypoint.sh | |
parent | 18f39804274b3ad1a3c6def3b106dc5636c45094 (diff) |
Add REG_TO_MSB as env param.
When deployed with OOM, should not register service to MSB by itself. So Add REG_TO_MSB as env param to control the function register to MSB when start. Default value is True.
Change-Id: I91c4eed048bfa819f701323015626ac54d3f35ec
Issue-ID: MSB-98
Signed-off-by: LiZi <li.zi30@zte.com.cn>
Diffstat (limited to 'docker/docker-entrypoint.sh')
-rwxr-xr-x | docker/docker-entrypoint.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index f02c9cce..f1cf4f23 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -5,6 +5,11 @@ if [ -z "$SERVICE_IP" ]; then fi echo "SERVICE_IP=$SERVICE_IP" +if [ -z "$REG_TO_MSB" ]; then + export REG_TO_MSB=True +fi +echo "REG_TO_MSB=$REG_TO_MSB" + if [ -z "$MYSQL_ROOT_PASSWORD" ]; then export MYSQL_ROOT_PASSWORD="root" fi |