BlindAI
Search…
Setting up your dev environment
Setup build dependencies and dev environment for building and working on BlindAI

Using Docker 🐳

This is by far the easiest method to get started, since you don't have to deal with installing the Intel drivers. Also, the Intel SGX drivers and SGX SDK are not officially supported in some distributions. The Docker image provides a clean and easy way to have a working development environment for any OS that supports Docker.
We directly provide a docker image that has everything you need to build and work on BlindAI server. To use it, clone the repository and run:
1
DOCKER_BUILDKIT=1 docker build \
2
-f ./server/docker/build.dockerfile \
3
-t blindai-dev-env \
4
--target base-build \
5
./server
Copied!
Then, to start it:
1
docker create -it \
2
--name blindai-dev-env \
3
-p 50051:50051 \
4
-p 50052:50052 \
5
--volume $(pwd):/root/blindai \
6
blindai-dev-env \
7
/bin/bash
Copied!
You can then use Visual Studio Code to directly work in that container using the Remote - Containers extension. Once installed, you wil have acces to this Remote tab. Use it to launch vscode in the blindai-dev-env container you just created.
Then open the /root/blindai folder, and you're good to go!
You probably also want to install the Rust Analyzer extension in the docker container. To do that, use the extensions menu, find Rust Analyzer and click "Install in container".
[image]

Without Docker

If you don't want to use docker, you will need to install the following:
  • Intel SGX DCAP 1.41 Driver
  • Intel SGX SDK v2.15.1
  • Intel SGX PSW (version 2.15.101.1 for the PSW librairies and 1.12.101.1 for the PSW-DCAP librairies)
  • Rust nightly-2021-11-01 with Xargo
You can find the installation guides for Intel SGX software on the 01.org website.
Note: if you are running on a machine without SGX support, you will need the simulation versions of the Intel PSW and SDK.