Skip to content

Commit

Permalink
Docker on 3.x (ezsystems#455)
Browse files Browse the repository at this point in the history
* [Docker] Fixed problem with DATABASE_URL in install_dependencies

* [Docker] Added default composer project name
  • Loading branch information
vidarl authored and andrerom committed Oct 3, 2019
1 parent 2c7d70e commit b09f1dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ COMPOSE_DIR=.
COMPOSER_HOME=~/.composer
COMPOSER_MEMORY_LIMIT=4G

# Feel free to change project name to something meaningful (preferably unique per project)
COMPOSE_PROJECT_NAME=ezplatform

## Docker images (name and version)
PHP_IMAGE=ezsystems/php:7.3-v1
PHP_IMAGE_DEV=ezsystems/php:7.3-v1-dev
Expand Down
2 changes: 2 additions & 0 deletions doc/docker/install-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ services:
- DATABASE_PASSWORD
- DATABASE_NAME
- COMPOSER_AUTH
- DATABASE_PLATFORM
- DATABASE_PORT
command: ./doc/docker/install_script.sh
2 changes: 2 additions & 0 deletions doc/docker/install_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ fi
mkdir -p public/var

if [ "${INSTALL_DATABASE}" == "1" ]; then
export DATABASE_URL=${DATABASE_PLATFORM}://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}

php /scripts/wait_for_db.php
composer ezplatform-install
if [ "$APP_CMD" != '' ]; then
Expand Down

0 comments on commit b09f1dc

Please sign in to comment.