Merge branch 'master' into optimize-docker

This commit is contained in:
Almira Krdzic
2018-10-24 14:17:47 +02:00
2 changed files with 6 additions and 11 deletions

6
.dockerignore Normal file
View File

@@ -0,0 +1,6 @@
# Added to prevent permission problems when building without using super user privileges
./database/volume
./docker/backend/uploads
./log/backend
./log/frontend

View File

@@ -11,21 +11,10 @@ echo "Ready...."
sudo -u www-data -s -- <<EOF
# Export variables for www-data user so they
# are accessible when running wp CLI
export WP_ENV="$WP_ENV"
export WP_HOME="$WP_HOME"
export WP_DB_HOST="$WP_DB_HOST"
export MYSQL_DATABASE="$MYSQL_DATABASE"
export MYSQL_USER="$MYSQL_USER"
export MYSQL_PASSWORD="$MYSQL_PASSWORD"
export WP_AUTH_KEY="$WP_AUTH_KEY"
export WP_SECURE_AUTH_KEY="$WP_SECURE_AUTH_KEY"
export WP_LOGGED_IN_KEY="$WP_LOGGED_IN_KEY"
export WP_NONCE_KEY="$WP_NONCE_KEY"
export WP_AUTH_SALT="$WP_AUTH_SALT"
export WP_SECURE_AUTH_SALT="$WP_SECURE_AUTH_SALT"
export WP_LOGGED_IN_SALT="$WP_LOGGED_IN_SALT"
export WP_NONCE_SALT="$WP_NONCE_SALT"
export WP_JWT_AUTH_SECRET_KEY="$WP_JWT_AUTH_SECRET_KEY"
# Execute database update
composer update-db