-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from benjy8001/develop
Refacto install script
- Loading branch information
Showing
4 changed files
with
124 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
DOCKER_COMPOSE = docker-compose | ||
|
||
EXEC_DEBIAN = $(DOCKER_COMPOSE) exec -T debian /entrypoint | ||
EXEC_DEBIAN = $(DOCKER_COMPOSE) exec debian | ||
|
||
start: ## Pull and start docker debian | ||
start: | ||
printf "\033[32m You can go take a coffee while we work for you \033[0m\n" | ||
$(DOCKER_COMPOSE) pull | ||
$(DOCKER_COMPOSE) up -d --remove-orphans debian | ||
|
||
stop: ## Stop docker | ||
stop: | ||
$(DOCKER_COMPOSE) stop | ||
|
||
run: | ||
run: ## Run the install script on debian | ||
run: start | ||
$(EXEC_DEBIAN) ./install_zsh.sh | ||
|
||
connect: ## Connect to the container of the project | ||
$(EXEC_DEBIAN) | ||
|
||
.PHONY: start stop run connect | ||
|
||
## | ||
.DEFAULT_GOAL := help | ||
help: | ||
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/' | ||
.PHONY: help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters