-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
70 lines (61 loc) · 1.92 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
ifeq ($(STACKROX_CENTOS_TAG),)
STACKROX_CENTOS_TAG=$(shell cat STACKROX_CENTOS_TAG)
endif
ifeq ($(ROCKSDB_TAG),)
ROCKSDB_TAG=$(shell .circleci/get_tag.sh "rocksdb" "$(STACKROX_CENTOS_TAG)")
endif
ifeq ($(DOCKER),)
DOCKER=docker
endif
QUAY_REPO=rhacs-eng
.PHONY: rocksdb-image
rocksdb-image:
$(DOCKER) build \
-t stackrox/apollo-ci:$(ROCKSDB_TAG) \
-t quay.io/$(QUAY_REPO)/apollo-ci:$(ROCKSDB_TAG) \
--build-arg STACKROX_CENTOS_TAG=$(STACKROX_CENTOS_TAG) \
-f images/rocksdb.Dockerfile \
images/
STACKROX_BUILD_TAG=$(shell .circleci/get_tag.sh "stackrox-build")
.PHONY: stackrox-build-image
stackrox-build-image:
$(DOCKER) build \
-t stackrox/apollo-ci:$(STACKROX_BUILD_TAG) \
-t quay.io/$(QUAY_REPO)/apollo-ci:$(STACKROX_BUILD_TAG) \
--build-arg ROCKSDB_TAG=$(ROCKSDB_TAG) \
--build-arg STACKROX_CENTOS_TAG=$(STACKROX_CENTOS_TAG) \
-f images/stackrox-build.Dockerfile \
images/
STACKROX_TEST_TAG=$(shell .circleci/get_tag.sh "stackrox-test")
.PHONY: stackrox-test-image
stackrox-test-image:
$(DOCKER) build \
-t stackrox/apollo-ci:$(STACKROX_TEST_TAG) \
-t quay.io/$(QUAY_REPO)/apollo-ci:$(STACKROX_TEST_TAG) \
--build-arg BASE_TAG=$(STACKROX_BUILD_TAG) \
-f images/stackrox-test.Dockerfile \
images/
STACKROX_TEST_CCI_TAG=$(shell .circleci/get_tag.sh "stackrox-test-cci")
.PHONY: stackrox-test-cci-image
stackrox-test-cci-image:
$(DOCKER) build \
-t stackrox/apollo-ci:$(STACKROX_TEST_CCI_TAG) \
-t quay.io/$(QUAY_REPO)/apollo-ci:$(STACKROX_TEST_CCI_TAG) \
--build-arg BASE_TAG=$(STACKROX_TEST_TAG) \
-f images/circleci.Dockerfile \
images/
.PHONY: test-cci-export
test-cci-export:
$(DOCKER) build \
-t test-cci-export \
--build-arg BASE_TAG=$(STACKROX_TEST_CCI_TAG) \
-f images/test.cci-export.Dockerfile \
images/
$(DOCKER) run \
-it \
test-cci-export
.PHONY: collector-test-image
collector-test-image:
$(DOCKER) build \
-f images/collector.Dockerfile \
images/