forked from DIAGNijmegen/rse-grand-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 849 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 849 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
33
34
USER_ID = $(shell id -u)
build_web:
docker build \
--target test \
-t grandchallenge/web-test:$(TRAVIS_BUILD_NUMBER)-$(TRAVIS_BRANCH) \
-t grandchallenge/web-test:latest \
-f dockerfiles/web/Dockerfile \
.
docker build \
--target dist \
-t grandchallenge/web:$(TRAVIS_BUILD_NUMBER)-$(TRAVIS_BRANCH) \
-t grandchallenge/web:latest \
-f dockerfiles/web/Dockerfile \
.
build_http:
docker build \
-t grandchallenge/http:$(TRAVIS_BUILD_NUMBER)-$(TRAVIS_BRANCH) \
-t grandchallenge/http:latest \
dockerfiles/http
build: build_web build_http
push_web:
docker push grandchallenge/web:$(TRAVIS_BUILD_NUMBER)-$(TRAVIS_BRANCH)
push_http:
docker push grandchallenge/http:$(TRAVIS_BUILD_NUMBER)-$(TRAVIS_BRANCH)
push: push_web push_http
migrations:
docker-compose run -u $(USER_ID) --rm web python manage.py makemigrations