nit/Makefile

20 lines
400 B
Makefile

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