forked from 7574-sistemas-distribuidos/tp0-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 959 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
42
43
44
45
default: build
deps:
go mod tidy
go mod vendor
build: build-client build-server
.PHONY: build
build-client: deps
go build -o bin/client ./client
.PHONY: build-client
build-server: deps
go build -o bin/server ./server
.PHONY: build-server
run-client: build-client
cd ./client && ../bin/client
.PHONY: run-client
run-server: build-server
cd ./server && ../bin/server
.PHONY: run-server
docker-image:
docker build -f ./server/Dockerfile -t "server:latest" .
docker build -f ./client/Dockerfile -t "client:latest" .
.PHONY: docker-image
docker-compose-up: docker-image
docker compose -f docker-compose-dev.yaml up
.PHONY: docker-compose-up
docker-compose-down:
docker compose -f docker-compose-dev.yaml stop -t 1
docker compose -f docker-compose-dev.yaml down
.PHONY: docker-compose-down
docker-compose-logs:
docker compose -f docker-compose-dev.yaml logs -f
.PHONY: docker-compose-logs
data:
unzip -o client/.data/dataset -d client/.data