- Linux box
- OpenSSL
- Docker
- make
To build it is recommended to use Docker.
To build the container image, use the appropriate Make targets:
make docker-buildThis will generate a container image with a signed binary, and if there isn't a key available in tee/private.pem it will generate a new one.
A test suite is available, running inside container images with the appropriate environment and dependencies available (ego).
make testTo run the container, use the appropriate Make target(below), or you can use the container images published in dockerhub:
## Run without an Intel SGX hardware
touch .masa/.env
echo "STANDALONE=true" > .masa/.env
docker run --net host -e OE_SIMULATION=1 --rm -v $PWD/.masa:/home/masa -ti masaengineering/tee-worker:mainmake run-sgxmake run-simulate