add sonarqube to docker-compose (#2113)

* add sonarqube to docker-compose
* change volume dir
* add postgres init db
* add comment for sonarqube error
This commit is contained in:
xiagw
2019-05-08 18:10:22 +08:00
committed by Shao Yu-Lung (Allen)
parent f5c80cd251
commit cbbdb0a86b
6 changed files with 94 additions and 1 deletions

View File

@@ -33,7 +33,7 @@
# EOSQL
#
### default database and user for jupyterhub ##############################################
if [ $JUPYTERHUB_POSTGRES_INIT == 'true' ]; then
if [ "$JUPYTERHUB_POSTGRES_INIT" == 'true' ]; then
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER $JUPYTERHUB_POSTGRES_USER WITH PASSWORD '$JUPYTERHUB_POSTGRES_PASSWORD';
CREATE DATABASE $JUPYTERHUB_POSTGRES_DB;