-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 943 Bytes
/
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
COMPONENT := logging
CONTAINER := phpcli
IMAGES ?= false
APP_ROOT := /app/logging
all: dev nodev
dev:
@docker-compose -p ${COMPONENT} -f ops/docker/docker-compose.yaml up -d --build
nodev:
@docker-compose -p ${COMPONENT} -f ops/docker/docker-compose.yaml rm -f > /dev/null
ifeq ($(IMAGES),true)
@docker rmi ${COMPONENT}_${CONTAINER}
endif
enter:
@docker exec -ti ${COMPONENT}_${CONTAINER}_1 /bin/sh
test: unit integration
deps:
@composer install --no-interaction
unit:
@docker exec -t ${COMPONENT}_${CONTAINER}_1 ${APP_ROOT}/ops/scripts/unit.sh ${PHP_VERSION}
integration:
@docker exec -t ${COMPONENT}_${CONTAINER}_1 ${APP_ROOT}/ops/scripts/integration.sh ${PHP_VERSION}
ps: status
status:
@docker-compose -p ${COMPONENT} -f ops/docker/docker-compose.yaml ps
logs:
@docker-compose -p ${COMPONENT} -f ops/docker/docker-compose.yaml logs
tag: # List last tag for this repo
@git tag -l | sort -r |head -1
restart: nodev dev