Skip to content

Commit

Permalink
fix: start proxy in startup startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 16, 2025
1 parent 9fd7b2c commit 1d3105f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -ex

EXAMPLE=$1

Expand Down
8 changes: 5 additions & 3 deletions examples/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ set -ex

EXAMPLE=$1

sudo pkill socat || true
sudo nitro-cli terminate-enclave --all

sudo nitro-cli run-enclave \
--cpu-count 2 \
--memory 2048 \
--eif-path "$EXAMPLE/$EXAMPLE.eif" \
--enclave-cid 16 \
--debug-mode
--enclave-cid 16

sudo nitro-cli describe-enclaves

sudo nitro-cli console --enclave-name $EXAMPLE
sudo socat tcp-listen:443,reuseaddr,fork "vsock-connect:$(nitro-cli describe-enclaves | jq -r '.[0].EnclaveCID'):443" &

sudo nitro-cli console --enclave-name "$EXAMPLE"

0 comments on commit 1d3105f

Please sign in to comment.