Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.08 KB

DEVELOPMENT.md

File metadata and controls

52 lines (33 loc) · 1.08 KB

Development

Requirements

  • Linux box
  • OpenSSL
  • Docker
  • make

Build

To build it is reccomended to use Docker.

Building the container image

To build the container image, use the appropriate Make targets:

make docker-build

This 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.

Running tests

A test suite is available, running inside container images with the appropriate environment and dependencies available (ego).

make test

Running the container for development

To 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
docker run --net host -e OE_SIMULATION=1 --rm -v $PWD/.masa:/home/masa -ti masaengineering/tee-worker:main

If you have an Intel-SGX capable machine

make run-sgx

If you don't have an Intel-SGX capable machine

make run-simulate