occlum/tools/docker
LI Qing 6d72e10fc1 Add Golang toolchain and the demo
This commit provides a modified Go runtime in Docker image.
Now we can build a Go program using `occlum-go`, then run it
in SGX enclaves by Occlum.
The Golang demo demonstrates how to build and run a web server
program written in Go.
2020-05-15 03:02:42 +00:00
..
build_image.sh Add Dockerfile for Ubuntu 18.04 2020-01-23 04:40:54 +00:00
Dockerfile.centos7.2 Add Golang toolchain and the demo 2020-05-15 03:02:42 +00:00
Dockerfile.ubuntu16.04 Add Golang toolchain and the demo 2020-05-15 03:02:42 +00:00
Dockerfile.ubuntu18.04 Add Golang toolchain and the demo 2020-05-15 03:02:42 +00:00
README.md Add Dockerfile for Ubuntu 18.04 2020-01-23 04:40:54 +00: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 16.04, Ubuntu 18.04 and CentOS 7.2.

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.9.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: ubuntu16.04, ubuntu18.04 and centos7.2.

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