forked from udbc/catalogue
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 760 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 760 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
NAME = weaveworksdemos/catalogue
DBNAME = weaveworksdemos/catalogue-db
TAG=$(TRAVIS_COMMIT)
INSTANCE = catalogue
.PHONY: default copy test
default: test
copy:
docker create --name $(INSTANCE) $(NAME)-dev
docker cp $(INSTANCE):/app/main $(shell pwd)/app
docker rm $(INSTANCE)
release:
docker build -t $(NAME) -f ./docker/catalogue/Dockerfile-release .
test:
GROUP=weaveworksdemos COMMIT=test ./scripts/build.sh
./test/test.sh unit.py
./test/test.sh container.py --tag $(TAG)
dockertravisbuild: build
docker build -t $(NAME):$(TAG) -f docker/catalogue/Dockerfile-release docker/catalogue/
docker build -t $(DBNAME):$(TAG) -f docker/catalogue-db/Dockerfile docker/catalogue-db/
docker login -u $(DOCKER_USER) -p $(DOCKER_PASS)
scripts/push.sh