-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.14 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
SUB_DIRS = protobuf
PACKAGES ?= $(shell go list ./...)
all: $(SUB_DIRS)
$(SUB_DIRS):
make -C $@
test:
-mkdir build
go test $(PACKAGES) -v -cover -failfast
test_docker:
-docker stop monify-test-postgres
-docker rm monify-test-postgres
docker run --name monify-test-postgres -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres
go test $(PACKAGES) -v -cover -failfast -tags docker
clean:
-rm -rf build
docker_push_proxy: docker_build_proxy
docker push registry.nccupass.com/monify_restful_proxy
docker_push_monify: docker_build_monify
docker push registry.nccupass.com/monify
docker_push_media: docker_build_media
docker push registry.nccupass.com/media_service
docker_push: docker_push_proxy docker_push_monify docker_push_media
docker_build: docker_build_proxy docker_build_monify docker_build_media
docker_build_proxy:
docker build -f Dockerfile.proxy -t registry.nccupass.com/monify_restful_proxy .
docker_build_monify:
docker build -f Dockerfile.api -t registry.nccupass.com/monify .
docker_build_media:
docker build -f Dockerfile.media -t registry.nccupass.com/media_service .
.PHONY: $(SUB_DIRS)