nit/Makefile

23 lines
407 B
Makefile

.PHONY: default
default: out/nitro.eif
out/nitro.eif: Cargo.lock Cargo.toml out $(shell git ls-files src)
docker build \
--progress=plain \
--output type=local,rewrite-timestamp=true,dest=out \
-f Containerfile \
.
out:
mkdir -p out
.PHONY: run
run: out/nitro.eif
nitro-cli \
run-enclave \
--cpu-count 2 \
--memory 512M \
--eif-path out/nitro.eif \
--debug-mode \
--attach-console