From 720ef592adaa3c3ee9b2280c7a05e85ac300b976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=8E=89=E5=9D=A1?= Date: Sun, 29 Jul 2018 09:10:04 +0800 Subject: [PATCH] =?UTF-8?q?U=20-=20=E9=80=9A=E7=94=A8=20-=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9Dockerfile=E5=AE=B9=E5=99=A8=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E8=84=9A=E6=9C=AC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Dockerfile/entrypoint.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/Dockerfile/entrypoint.sh b/docs/Dockerfile/entrypoint.sh index fc764b7..e79edbe 100644 --- a/docs/Dockerfile/entrypoint.sh +++ b/docs/Dockerfile/entrypoint.sh @@ -2,13 +2,6 @@ # set -e -REQUIRE_INIT_OPS=false - -# env check -if [ -z $REGISTRY_SERVER ]; then - echo 'Please set REGISTRY_SERVER by -e REGISTRY_SERVER=' - exit 1 -fi # init db if [ ! -d /var/lib/mysql/mysql ]; then @@ -34,7 +27,6 @@ cd /spug/spug_api nginx nohup /usr/bin/mysqld_safe --datadir=/var/lib/mysql --user=root & sleep 2 -if [ $REQUIRE_INIT_OPS == true ]; then - /usr/bin/python3 /scripts/init_spug.py -fi + +/usr/bin/python3 /scripts/init_spug.py gunicorn --threads=32 main:app -b 0.0.0.0:3000