forked from mayadata-io/cstor-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
38 lines (31 loc) · 1.23 KB
/
GNUmakefile
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
# Specify the date o build
BUILD_DATE = $(shell date +'%Y%m%d%H%M%S')
all: cstor-base-image cstor-basetest-image cstor-pool-image
cstor-build:
@echo "----------------------------"
@echo "--> cstor-build "
@echo "----------------------------"
@sh cstor-container
cstor-base-image: cstor-build
@echo "----------------------------"
@echo "--> cstor-base-image "
@echo "----------------------------"
@sudo docker build -f Dockerfile.Baseimage -t openebs/cstor-base:ci --build-arg BUILD_DATE=${BUILD_DATE} .
@sh push-baseimage
cstor-pool-image:
@echo "----------------------------"
@echo "--> cstor-pool-image "
@echo "----------------------------"
@sudo docker build -f Dockerfile.Poolimage -t openebs/cstor-pool:ci --build-arg BUILD_DATE=${BUILD_DATE} .
@sh push-poolimage
cstor-basetest-image:
@echo "----------------------------"
@echo "--> cstor-baseshared-image "
@echo "----------------------------"
@sudo docker build -f Dockerfile.BaseTestImage -t openebs/cstor-test:ci --build-arg BUILD_DATE=${BUILD_DATE} .
@sh push-basetestimage
prerequisites:
@echo "----------------------------"
@echo "--> Installing cstor-prerequisites "
@echo "----------------------------"
@sh cstor-prerequisites