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