Skip to content
Permalink
Browse files

env: Added configuration lint process to docker entry points.

  • Loading branch information
tarlepp committed Nov 19, 2019
1 parent edad662 commit 7c732ef6fb0743878b4d9bd80873e139ca114a6d
Showing with 9 additions and 1 deletion.
  1. +4 −0 docker-entrypoint-dev.sh
  2. +5 −1 docker-entrypoint.sh
@@ -3,6 +3,7 @@ set -e

#
# If we're starting web-server we need to do following:
# 0) Basic linting of current JSON configuration file
# 1) Modify docker-php-ext-xdebug.ini file to contain correct remote host value, note that for mac we need to use
# another value within this. Also we want to export host IP so that we can use that within `check.php` to check
# that current environment is compatible with Symfony.
@@ -17,6 +18,9 @@ set -e
# https://jtreminio.com/blog/running-docker-containers-as-current-host-user/
#

# Step 0
make lint-configuration

# Step 1
if [[ -z "${DOCKER_WITH_MAC}" ]]; then
# Not Mac, so determine actual docker container IP address
@@ -3,6 +3,7 @@ set -e

#
# If we're starting web-server we need to do following:
# 0) Basic linting of current JSON configuration file
# 1) Ensure that /app/var directory exists
# 2) Generate JWT encryption keys + allow web server to read this file
# 3) Clear and warmup caches on current environments
@@ -16,7 +17,10 @@ set -e
# docker context won't be passed to php process.
#

if [ "$1" = 'php-fpm' ]; then
if [[ "$1" = 'php-fpm' ]]; then
# Step 0
make lint-configuration

# Step 1
mkdir -p /app/var

0 comments on commit 7c732ef

Please sign in to comment.
You can’t perform that action at this time.