-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
28 lines (19 loc) · 904 Bytes
/
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
# Build recipes for the CloudSec software container images.
# Set the IMAGE_NAMESPACE variable to define the image repository; by default, we use the
# official CloudSec resporitory on GitHub Container Registry (ghcr.io/applyfmsec)
IMAGE_NAMESPACE ?= ghcr.io/applyfmsec
all:
$(Using image namespace: $(IMAGE_NAMESPACE))
build-core: all
docker build -t $(IMAGE_NAMESPACE)/cloudsec .
build-tests: build-core
docker build -t $(IMAGE_NAMESPACE)/cloudsec-tests -f Dockerfile-tests .
build-tapis: build-tests
docker build -t $(IMAGE_NAMESPACE)/cloudsec-tapis -f Dockerfile-tapis .
build-exs: build-tapis
docker build -t $(IMAGE_NAMESPACE)/cloudsec-exs -f Dockerfile-exs .
build-perf: build-core
docker build -t $(IMAGE_NAMESPACE)/cloudsec-tests-perf -f Dockerfile-perf .
build: build-core build-exs build-tests build-perf
test: build-tests
docker run -it --rm $(IMAGE_NAMESPACE)/cloudsec-tests