Include basic usage examples

This commit is contained in:
Ryan Heywood 2025-07-12 15:14:54 -04:00
parent 50ef776988
commit 0252a625c0
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
3 changed files with 23 additions and 21 deletions

View File

@ -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 \

View File

@ -1,3 +1,24 @@
# nit
25% smaller than init
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
```

16
crates/nit/Cargo.lock generated
View File

@ -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",
]