-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.docker
51 lines (39 loc) · 1.53 KB
/
Makefile.docker
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
46
47
48
49
50
51
include variables.mk
####################
### Build images ###
####################
images: image-extender \
image-extender-patcher \
image-scheduler
image-extender:
cp ./pkg/${SCHEDULER}/${EXTENDER}/Dockerfile ./build/${SCHEDULING_PKG}/${EXTENDER}/
docker build --network host --force-rm --tag ${REGISTRY}/${PROJECT}-${SCHEDULER}-${EXTENDER}:${TAG} ./build/${SCHEDULING_PKG}/${EXTENDER}
image-extender-patcher:
docker build --network host --force-rm --tag ${REGISTRY}/${PROJECT}-${EXTENDER_PATCHER}:${TAG} ./pkg/${SCHEDULER_EXTENDER_PATCHER_PKG}
image-scheduler:
cp ./pkg/${SCHEDULER}/${PLUGIN}/Dockerfile ./build/${SCHEDULING_PKG}/${SCHEDULER}/
docker build --network host --force-rm --tag ${REGISTRY}/${PROJECT}-${SCHEDULER}:${TAG} ./build/${SCHEDULING_PKG}/${SCHEDULER}
###################
### Push images ###
###################
push: push-extender \
push-extender-patcher \
push-scheduler
push-extender:
docker push ${REGISTRY}/${PROJECT}-${SCHEDULER}-${EXTENDER}:${TAG}
push-extender-patcher:
docker push ${REGISTRY}/${PROJECT}-${EXTENDER_PATCHER}:${TAG}
push-scheduler:
docker push ${REGISTRY}/${PROJECT}-${SCHEDULER}:${TAG}
####################
### Clean images ###
####################
clean-images: clean-image-extender \
clean-image-extender-patcher \
clean-image-scheduler
clean-image-extender:
docker rmi ${REGISTRY}/${PROJECT}-${SCHEDULER}-${EXTENDER}:${TAG}
clean-image-extender-patcher:
docker rmi ${REGISTRY}/${PROJECT}-${EXTENDER_PATCHER}:${TAG}
clean-image-scheduler:
docker rmi ${REGISTRY}/${PROJECT}-${SCHEDULER}:${TAG}