Skip to content

Instantly share code, notes, and snippets.

@d8vjork
Last active February 3, 2020 00:37
Show Gist options
  • Save d8vjork/a81bab64d8eec4be2762d7aa00f93ed6 to your computer and use it in GitHub Desktop.
Save d8vjork/a81bab64d8eec4be2762d7aa00f93ed6 to your computer and use it in GitHub Desktop.
...
help: ## Print the help page
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) |\
cut -d ':' -f 2,3 |\
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
up: ## Start Docker services
@docker-compose up -d
start: up ## Alias of up
down: ## Stop Docker services
@docker-compose stop
stop: down ## Alias of down
restart: stop start ## Restart Docker services
jumpin: ## Jump into the application container
@docker exec -it ${container} bash
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment