Skip to content

Commit

Permalink
OpenEnclave install documentation (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondu7297 authored Dec 29, 2023
1 parent 5aea23d commit 531938d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,32 @@

### 1. OpenEnclave SDK

Follow the installation instructions found in the [OpenEnclave documentation](https://github.com/openenclave/openenclave/blob/master/docs/GettingStartedDocs/install_oe_sdk-Ubuntu_20.04.md). If only using in simulation mode, you can skip step 2.
Follow the steps listed below to install OpenEnclave SDK. More detailed installation instructions can be found in the [OpenEnclave documentation](https://github.com/openenclave/openenclave/blob/master/docs/GettingStartedDocs/install_oe_sdk-Ubuntu_20.04.md).

First, configure the Intel and Microsoft APT Repositories:
```bash
echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list
wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add -

echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-focal-11.list
wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -

echo "deb [arch=amd64] https://packages.microsoft.com/ubuntu/20.04/prod focal main" | sudo tee /etc/apt/sources.list.d/msprod.list
wget -qO - https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

sudo apt update
```

Then, install the Intel and Open Enclave packages and dependencies:
```bash
sudo apt -y install clang-11 libssl-dev gdb libsgx-enclave-common libsgx-quote-ex libprotobuf17 libsgx-dcap-ql libsgx-dcap-ql-dev az-dcap-client open-enclave
```

Finally, to make use of the Open Enclave CMake package, please install CMake:
```bash
sudo apt-get install python3-pip
sudo pip3 install cmake
```

### 2. Apache Thrift

Expand Down

0 comments on commit 531938d

Please sign in to comment.