occlum/tools/docker
2023-01-18 13:11:16 +08:00
..
ci Update gvisor test with prepare_bazel.sh 2023-01-18 13:11:16 +08:00
build_image.sh Add anolis 8.4 docker image support 2022-10-08 15:00:32 +08:00
Dockerfile.aliyunlinux3 Build and install dcap lib when make submodule 2022-02-11 11:10:02 +08:00
Dockerfile.anolis8.4 Add anolis 8.4 docker image support 2022-10-08 15:00:32 +08:00
Dockerfile.centos8.2 Update the centos docker file 2022-02-11 11:10:02 +08:00
Dockerfile.ubuntu18.04 Build and install dcap lib when make submodule 2022-02-11 11:10:02 +08:00
Dockerfile.ubuntu20.04 Bump to 0.29.0 2022-09-14 20:05:04 +08:00
README.md Add anolis 8.4 docker image support 2022-10-08 15:00:32 +08:00
start_aesm.sh Fix docker image for SGX1 HW 2021-03-15 10:33:32 +08: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, Ubuntu 20.04, CentOS 8.2, aliyunlinux3 and anolis8.4.

How to Build

To build an Occlum Docker image, run the following command

./build_image.sh <OCCLUM_LABEL> <OS_NAME> <OCCLUM_BRANCH>

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.24.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, ubuntu20.04, centos8.2, aliyunlinux3 and anolis8.4. <OCCLUM_BRANCH> indicates which the docker image is built on, e.g "0.24.0". It is optional, if not provided, "master" branch will be used.

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