2024-02-17 16:42:39 +00:00
|
|
|
REGISTRY := local
|
|
|
|
.DEFAULT_GOAL :=
|
2022-07-09 07:52:32 +00:00
|
|
|
.PHONY: default
|
2024-02-17 16:42:39 +00:00
|
|
|
default: out/enclaveos.tar
|
2022-07-29 20:32:04 +00:00
|
|
|
|
2024-02-17 16:42:39 +00:00
|
|
|
out:
|
|
|
|
mkdir out
|
2022-07-29 20:32:04 +00:00
|
|
|
|
2024-02-17 16:42:39 +00:00
|
|
|
out/enclaveos.tar: out \
|
|
|
|
$(shell git ls-files \
|
|
|
|
src/init \
|
|
|
|
src/aws \
|
|
|
|
)
|
2022-09-01 21:16:48 +00:00
|
|
|
docker build \
|
2024-02-17 16:42:39 +00:00
|
|
|
--tag $(REGISTRY)/enclaveos \
|
|
|
|
--progress=plain \
|
2024-09-27 06:11:25 +00:00
|
|
|
--output type=local,rewrite-timestamp=true,dest=out\
|
2024-02-17 16:42:39 +00:00
|
|
|
-f Containerfile \
|
|
|
|
src/
|
2024-09-27 06:11:25 +00:00
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
run: out/nitro.eif
|
|
|
|
sudo nitro-cli \
|
|
|
|
run-enclave \
|
|
|
|
--cpu-count 2 \
|
|
|
|
--memory 512M \
|
|
|
|
--eif-path out/nitro.eif \
|
|
|
|
--debug-mode \
|
|
|
|
--attach-console
|