Skip to content

Commit

Permalink
U - 通用 - 修改Dockerfile容器初始化脚本。
Browse files Browse the repository at this point in the history
  • Loading branch information
zyupo committed Jul 29, 2018
1 parent 46e3195 commit 720ef59
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions docs/Dockerfile/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=<docker registry server>'
exit 1
fi

# init db
if [ ! -d /var/lib/mysql/mysql ]; then
Expand All @@ -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

0 comments on commit 720ef59

Please sign in to comment.