-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 769 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 769 Bytes
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
COMPONENT := pluggitmonitoring
CONTAINER := php80
IMAGES ?= false
APP_ROOT := /app/monitoring
all: dev nodev
dev:
@docker-compose -p ${COMPONENT} -f ops/docker/docker-compose.yml up -d --build
enter:
@docker exec -ti ${COMPONENT}_${CONTAINER}_1 /bin/sh
nodev:
@docker-compose -p ${COMPONENT} -f ops/docker/docker-compose.yml rm -fa > /dev/null
ifeq ($(IMAGES),true)
@docker rmi ${COMPONENT}_${CONTAINER}
endif
test: unit
deps:
@composer install --no-interaction
unit:
@${APP_ROOT}/ops/scripts/unit.sh
ps: status
status:
@docker-compose -p ${COMPONENT} -f ops/docker/docker-compose.yml ps
logs:
@docker-compose -p ${COMPONENT} -f ops/docker/docker-compose.yml logs
tag: # List last tag for this repo
@git tag -l | sort -r |head -1
restart: nodev dev