-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (36 loc) · 742 Bytes
/
Makefile
File metadata and controls
43 lines (36 loc) · 742 Bytes
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
REGISTRY := local
.DEFAULT_GOAL :=
.PHONY: default
default: out/nitro.eif
out:
mkdir -p out
out/nitro.eif: $(shell git ls-files src) | out
docker build \
--pull \
--tag $(REGISTRY)/enclaveos \
--progress=plain \
--platform linux/amd64 \
--provenance=false \
--output type=local,rewrite-timestamp=true,dest=out\
-f Containerfile \
--build-arg ENCLAVE_APP=$(ENCLAVE_APP) \
.
.PHONY: run
run: out/nitro.eif
sudo nitro-cli \
run-enclave \
--cpu-count 2 \
--memory 512M \
--eif-path out/nitro.eif
.PHONY: run-debug
run-debug: out/nitro.eif
sudo nitro-cli \
run-enclave \
--cpu-count 2 \
--memory 512M \
--eif-path out/nitro.eif \
--debug-mode \
--attach-console
.PHONY: update
update:
./update.sh