diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-01-19 15:51:13 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-01-19 16:37:40 +0100 |
| commit | 7990722a6099be6cb949b042064f62b1ecad997b (patch) | |
| tree | 43c775ce4d561b460435b6e6b7d5fc63dbb0afca /tools | |
| parent | dad89f7bec37ccbd3284a60683cc4d09d4d31454 (diff) | |
tools/docker: describe the syzbot container build process
Now that it's multi-arch, it's somewhat more complicated.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/docker/README.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/docker/README.md b/tools/docker/README.md index eb15d28bb..e52af1c69 100644 --- a/tools/docker/README.md +++ b/tools/docker/README.md @@ -28,3 +28,18 @@ docker tag gcr.io/syzkaller/env docker.pkg.github.com/google/syzkaller/env docker login https://docker.pkg.github.com docker push docker.pkg.github.com/google/syzkaller/env ``` + +## Syzbot image + +The syzbot image supports two architectures (arm64, amd64), so we need to build it with care. + +The example below uses [the standard Docker functionality](https://docs.docker.com/build/building/multi-platform/) to build a +multi-arch image in a way that allows to distribute it under one tag names. + +```bash +docker run --privileged --rm tonistiigi/binfmt --install all +docker buildx create --name mybuilder --driver docker-container --bootstrap +docker buildx use mybuilder +gcloud auth login && gcloud auth configure-docker +docker buildx build --platform linux/amd64,linux/arm64 -t gcr.io/syzkaller/syzbot tools/docker/syzbot --push +``` |
