enclaveos/Makefile

29 lines
491 B
Makefile
Raw Permalink Normal View History

2024-02-17 16:42:39 +00:00
REGISTRY := local
.DEFAULT_GOAL :=
.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 \
)
docker build \
2024-02-17 16:42:39 +00:00
--tag $(REGISTRY)/enclaveos \
--progress=plain \
--output type=local,rewrite-timestamp=true,dest=out\
2024-02-17 16:42:39 +00:00
-f Containerfile \
src/
.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