From 0252a625c0b0bebdd43d6025db636f931ced859e Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 12 Jul 2025 15:14:54 -0400 Subject: [PATCH] Include basic usage examples --- Makefile | 5 +---- README.md | 23 ++++++++++++++++++++++- crates/nit/Cargo.lock | 16 ---------------- 3 files changed, 23 insertions(+), 21 deletions(-) delete mode 100644 crates/nit/Cargo.lock diff --git a/Makefile b/Makefile index 0c70829..116c283 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,13 @@ .PHONY: default default: out/nitro.eif -out/nitro.eif: Cargo.lock Cargo.toml out $(shell git ls-files src) +out/nitro.eif: Cargo.lock Cargo.toml $(shell git ls-files crates) 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 \ diff --git a/README.md b/README.md index edbf663..c9dd07c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,24 @@ # nit -25% smaller than init \ No newline at end of file +25% smaller than init + +## Testing with AWS on Amazon Linux + +Ensure the instance is set up with Nitro Enclaves, and run the following +command: + +```sh +dnf install aws-nitro-enclaves-cli make +``` + +Then, the EIF can be built using: + +```sh +make +``` + +And tested using: + +```sh +sudo make run +``` diff --git a/crates/nit/Cargo.lock b/crates/nit/Cargo.lock deleted file mode 100644 index 7c499b4..0000000 --- a/crates/nit/Cargo.lock +++ /dev/null @@ -1,16 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 4 - -[[package]] -name = "libc" -version = "0.2.172" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" - -[[package]] -name = "nit" -version = "0.1.0" -dependencies = [ - "libc", -]