Skip to content

Commit

Permalink
Merge pull request #34 from EmakinaFR/feature/root
Browse files Browse the repository at this point in the history
Add a command to export internal environment variables
  • Loading branch information
ajardin authored Feb 8, 2019
2 parents 09a725a + 4d1eec2 commit 6ada449
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6ada449

Please sign in to comment.