-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (30 loc) · 1.15 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
#
# Docker helper
#
tag=1.2
stag=1.2
ctag=1.1
vtag=1.0
no_cache=false
help:
@echo sudo make all tag=x.x vtag=y.y
@echo make push-all tag=x.x vtag=y.y
all:
cd amber && docker build --no-cache=true -t="obiba/amber:$(tag)" . && docker build -t="obiba/amber:latest" .
cd amber-studio && docker build --no-cache=true -t="obiba/amber-studio:$(stag)" . && docker build -t="obiba/amber-studio:latest" .
cd amber-collect && docker build --no-cache=true -t="obiba/amber-collect:$(ctag)" . && docker build -t="obiba/amber-collect:latest" .
cd amber-visit && docker build --no-cache=true -t="obiba/amber-visit:$(vtag)" . && docker build -t="obiba/amber-visit:latest" .
push-all:
docker image push obiba/amber:$(tag)
docker image push obiba/amber:latest
docker image push obiba/amber-studio:$(stag)
docker image push obiba/amber-studio:latest
docker image push obiba/amber-collect:$(ctag)
docker image push obiba/amber-collect:latest
docker image push obiba/amber-visit:$(vtag)
docker image push obiba/amber-visit:latest
# Build Docker image
build:
cd $(app) && docker build --no-cache=$(no_cache) -t="obiba/$(app):$(tag)" .
push:
docker image push obiba/$(app):$(tag)