Include basic usage examples
This commit is contained in:
parent
50ef776988
commit
0252a625c0
5
Makefile
5
Makefile
|
@ -1,16 +1,13 @@
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: out/nitro.eif
|
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 \
|
docker build \
|
||||||
--progress=plain \
|
--progress=plain \
|
||||||
--output type=local,rewrite-timestamp=true,dest=out \
|
--output type=local,rewrite-timestamp=true,dest=out \
|
||||||
-f Containerfile \
|
-f Containerfile \
|
||||||
.
|
.
|
||||||
|
|
||||||
out:
|
|
||||||
mkdir -p out
|
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run: out/nitro.eif
|
run: out/nitro.eif
|
||||||
nitro-cli \
|
nitro-cli \
|
||||||
|
|
23
README.md
23
README.md
|
@ -1,3 +1,24 @@
|
||||||
# nit
|
# 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
|
||||||
|
```
|
||||||
|
|
|
@ -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",
|
|
||||||
]
|
|
Loading…
Reference in New Issue