-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
51 lines (38 loc) · 1.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export USER_ID=$(shell id -u)
export GROUP_ID=$(shell id -g)
help: ## Show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
envdev: ## Get EnvDev version
@cat ./version
profile: ## Create new profile
@echo '******** Create new profile ********'
@sh -c scripts/profile.sh
delete: ## Delete profile
@echo '******** Delete profile ********'
@sh -c scripts/delete.sh
run: ## Run a profile
@echo '******** Running a profile **********'
@sh -c scripts/run.sh
servers: ## Start default containers
@echo '******** Starting default profile containers... ********'
@sh -c scripts/servers.sh
start: ## Start default containers
start: servers
stop: ## Stop all running containers
@echo '******** Stopping all running containers... ********'
@sh -c scripts/stop.sh
certificate: ## Generate a SSL certificate
@echo '******** Generate a SSL certificate ********'
@docker run -ti --rm -v $(shell pwd)/conf/ssl:/app/ssl vfac/certificates /app/certificate.sh
renewal: ## Renewal a knowed SSL certificate
@echo '******** Renew a SSL certificate ********'
@docker run -ti --rm -v $(shell pwd)/conf/ssl:/app/ssl vfac/certificates /app/regenerate_certificate.sh
homepage: ## Launch EnvDev homepage in default browser
@echo '******** Launch Homepage in browser ********'
@sh -c scripts/homepage.sh
terminal: ## Create a terminal on PHP container
@echo '******** Launch terminal ********'
@docker exec -ti base /bin/sh
terminalroot: ## Create a terminal on PHP container as root
@echo '******** Launch terminal as root ********'
@docker exec -ti -u 0 base /bin/sh