This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (40 loc) · 1.45 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
52
######################################
## MAKEFILE FOR PROJECT ##
######################################
.SILENT:
.PHONY: build
COMPOSE_CMD = docker-compose
#####
## Executed when you run "make" cmd
## Simply run "help" tasks
all: help
#####
## Build images (and ensure they are up to date)
build:
@echo 'Pull & build required images'
$(COMPOSE_CMD) build
#####
## Start new bash terminal inside the avm container
ssh:
@echo 'Starting new bash terminal inside avm container'
$(COMPOSE_CMD) run --rm avm bash
#####
## Display current running containers logs
logs:
@echo 'Display containers Logs (Press "Ctrl + c" to exit)'
$(COMPOSE_CMD) logs -f
#####
## Display available make tasks
help:
@echo 'Recipes List:'
@echo ''
@echo 'make <recipes>'
@echo ''
@echo '+-----------------+--------------------------------------------------------------------+'
@echo '| Recipes | Utility |'
@echo '+-----------------+--------------------------------------------------------------------+'
@echo '| build | Build images (and ensure they are up to date) |'
@echo '| ssh | Start new bash terminal inside the Symfony Container |'
@echo '| logs | Display current running containers logs (Press "Ctrl + c" to exit) |'
@echo '+-----------------+--------------------------------------------------------------------+'
@echo ''