-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 1.34 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
CONTAINER_RUNTIME ?= podman
IMAGE_CRUN_KRUN=crun-krun
IMAGE_ATTEST_SERV=attestation-server
IMAGE_GEN_MES=generate-libkrun-measurment
IMAGE_REG=register-image
IMAGE_ENCRYPT=encrypt-image
IMAGE_DEBUG=debug
TAG ?= latest
REGISTRY ?= "quay.io"
build:
cargo build
build-verifier:
cd verifier
cargo build --release
build-generate-libkrunfw-measurment:
cd generate-libkrun-measurment
cargo build --release
image-build-crun-krun:
$(CONTAINER_RUNTIME) build -t "$(REGISTRY)/$(IMAGE_CRUN_KRUN):$(TAG)" -f build-libkrun-crun-sev/Dockerfile .
image-attestation-server: build-verifier
$(CONTAINER_RUNTIME) build -t "$(REGISTRY)/$(IMAGE_ATTEST_SERV):$(TAG)" -f verifier/Dockerfile .
image-generate-libkrunfw-measurment: build-generate-libkrunfw-measurment
$(CONTAINER_RUNTIME) build -t "$(REGISTRY)/$(IMAGE_GEN_MES):$(TAG)" -f generate-libkrun-measurment/Dockerfile .
image-register-image:
$(CONTAINER_RUNTIME) build -t "$(REGISTRY)/$(IMAGE_REG):$(TAG)" -f register-image/Dockerfile register-image/
image-encrypt:
$(CONTAINER_RUNTIME) build -t "$(REGISTRY)/$(IMAGE_ENCRYPT):$(TAG)" -f encrypt-image/Dockerfile encrypt-image/
image-debug:
$(CONTAINER_RUNTIME) build -t "$(REGISTRY)/$(IMAGE_DEBUG):$(TAG)" -f debug-container/Dockerfile debug-container/
images: image-attestation-server image-generate-libkrunfw-measurment image-register-image image-encrypt image-debug