occlum/tools/docker
He Sun f1e5f574ca Add support for DCAP
1. Five new ioctl commands of /dev/sgx are added for occlum
applications to securely get and verify DCAP quote;
2. Not all the functions of the intel DCAP package are open to
developers to simplify the DCAP usage;
3. The test may only run on the platform with DCAP driver installed;
4. A macro OCCLUM_DISABLE_DCAP is used to separate the DCAP code from
the other code.
5. Skip DCAP test when DCAP driver is not detected or in simulation mode
2020-12-19 19:53:31 +08:00
..
ci Add Python demo CI 2020-10-13 16:06:02 +08:00
build_image.sh Add support for building docker image with specific Occlum branch 2020-11-20 09:24:24 +08:00
Dockerfile.centos7.5 Use sccache to accelerate Rust build 2020-11-05 21:54:57 +08:00
Dockerfile.centos8.1 Add support for DCAP 2020-12-19 19:53:31 +08:00
Dockerfile.ubuntu18.04 Add support for DCAP 2020-12-19 19:53:31 +08:00
README.md Add Dockerfile based on CentOS 8.1 2020-08-17 22:28:03 +08:00
start_aesm.sh Upgrade Rust SGX SDK and its deps to the latest 2020-01-23 04:40:54 +00:00

Building Occlum Docker images

This folder contains scripts and Dockerfiles for users to build the Docker images for Occlum. An Occlum Docker image sets up the development environment for Occlum and also gets Occlum preinstalled.

Currently, three Linux OS distributions are supported: Ubuntu 18.04, CentOS 7.5 and CentOS 8.1.

How to Build

To build an Occlum Docker image, run the following command

./build_image.sh <OCCLUM_LABEL> <OS_NAME>

where <OCCLUM_LABEL> is an arbitrary string chosen by the user to describe the version of Occlum preinstalled in the Docker image (e.g., "latest", "0.15.0", and "prerelease") and <OS_NAME> is the name of the OS distribution that the Docker image is based on. Currently, <OS_NAME> must be one of the following values: ubuntu18.04, centos7.5 and centos8.1.

The resulting Docker image will have occlum/occlum:<OCCLUM_LABEL>-<OS_NAME> as its label.