README.md
1# Docker images for ExecuTorch CI
2
3This directory contains everything needed to build the Docker images
4that are used in ExecuTorch CI. The content of this directory are copied
5from PyTorch CI https://github.com/pytorch/pytorch/tree/main/.ci/docker.
6It also uses the same directory structure as PyTorch.
7
8## Contents
9
10* `build.sh` -- dispatch script to launch all builds
11* `common` -- scripts used to execute individual Docker build stages
12* `ubuntu` -- Dockerfile for Ubuntu image for CPU build and test jobs
13
14## Usage
15
16```bash
17# Generic usage
18./build.sh "${IMAGE_NAME}" "${DOCKER_BUILD_PARAMETERS}"
19
20# Build a specific image
21./build.sh executorch-ubuntu-22.04-clang12 -t myimage:latest
22
23# Set CLANG version (see build.sh) and build image
24CLANG_VERSION=11 ./build.sh executorch-ubuntu-22.04-clang11 -t myimage:latest
25```
26