-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 859 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 859 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
default: docker-compose-up
docker-test:
docker build -t test-social -f Dockerfile.test . && docker run test-social && docker rmi test-social -f
all:
create-network:
@if ! docker network inspect common_network >/dev/null 2>&1; then \
docker network create common_network; \
fi
.PHONY: create-network
docker-image: create-network
docker build -f ./Dockerfile -t "gateway:latest" .
.PHONY: docker-image
docker-compose-up: docker-image
docker-compose -f docker-compose.yaml up -d --build
.PHONY: docker-compose-up
docker-compose-down:
docker-compose -f docker-compose.yaml stop -t 20
docker-compose -f docker-compose.yaml down --remove-orphans
.PHONY: docker-compose-down
docker-compose-logs:
docker-compose -f docker-compose.yaml logs -f
.PHONY: docker-compose-logs
magic: docker-compose-down docker-compose-up docker-compose-logs
.PHONY: magic