Skip to content

Commit b99a303

Browse files
committed
enclave files
1 parent 36a11b3 commit b99a303

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

configure_enclave.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -364,14 +364,7 @@ cat <<'EOF' > user-data.sh
364364
#!/bin/bash
365365
# Update the instance and install Nitro Enclaves tools, Docker and other utilities
366366
sudo yum update -y
367-
# Install Amazon Linux extras and enable Nitro Enclaves CLI
368-
sudo yum install -y amazon-linux-extras
369-
sudo amazon-linux-extras enable aws-nitro-enclaves-cli
370-
sudo yum clean metadata
371-
sudo yum install -y aws-nitro-enclaves-cli || echo "nitro-cli install failed"
372-
373-
# Other dependencies
374-
sudo yum install -y docker nano socat git make jq
367+
sudo yum install -y aws-nitro-enclaves-cli-devel aws-nitro-enclaves-cli docker nano socat git make
375368
376369
# Add the current user to the docker group (so you can run docker without sudo)
377370
sudo usermod -aG docker ec2-user
@@ -578,4 +571,4 @@ echo "[*] Please wait 2-3 minutes for the instance to finish the init script bef
578571
echo "[*] ssh inside the launched EC2 instance. e.g. \`ssh ec2-user@\"$PUBLIC_IP\"\` assuming the ssh-key is loaded into the agent."
579572
echo "[*] Clone or copy the repo with the above generated code."
580573
echo "[*] Inside repo directory: 'make' and then 'make run'"
581-
echo "[*] Run expose_enclave.sh from within the EC2 instance to expose the enclave to the internet."
574+
echo "[*] Run expose_enclave.sh from within the EC2 instance to expose the enclave to the internet."

src/nautilus-server/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ echo "127.0.0.64 api.weatherapi.com" >> /etc/hosts
2828

2929

3030

31+
3132
# == ATTENTION: code should be generated here that parses allowed_endpoints.yaml and populate domains here ===
3233

3334
cat /etc/hosts
@@ -50,6 +51,7 @@ python3 /traffic_forwarder.py 127.0.0.64 443 3 8101 &
5051

5152

5253

54+
5355
# Listens on Local VSOCK Port 3000 and forwards to localhost 3000
5456
socat VSOCK-LISTEN:3000,reuseaddr,fork TCP:localhost:3000 &
5557

0 commit comments

Comments
 (0)