From 4d1eec20ad29718acb54ef8a9465f0f6c997a71b Mon Sep 17 00:00:00 2001 From: Alexandre Jardin Date: Fri, 8 Feb 2019 10:17:36 +0100 Subject: [PATCH] Add a command to export internal environment variables --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 5ee5720..4cf03d0 100644 --- a/Makefile +++ b/Makefile @@ -98,6 +98,13 @@ restore: ## Restore the "mysql" volume busybox sh -c "tar xvf /backup/backup.tar var/lib/mysql/" docker-compose restart mysql +root: ## Display the commands to set up the environment for an advanced usage + @echo "export COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}" + @echo "export COMPOSE_FILE=${COMPOSE_FILE}" + @echo "export PROJECT_LOCATION=${PROJECT_LOCATION}" + @echo "export DOCKER_PHP_IMAGE=${DOCKER_PHP_IMAGE}" + @echo "\n# Run this command to configure your shell:\n# eval \$$(make root)" + start: ## Start the environment docker-compose up -d --remove-orphans