From d87888096e6e3dbeef9ae7ac6544731cf4fb24cd Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Fri, 3 Apr 2020 08:27:50 +0100 Subject: [PATCH] Add CI README, explaining how to update docker images (#162) --- ci/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ci/README.md diff --git a/ci/README.md b/ci/README.md new file mode 100644 index 0000000..af29f7c --- /dev/null +++ b/ci/README.md @@ -0,0 +1,19 @@ +# Keeping CI images up to date + +## Re-building an image after updating the docker file + +Run `docker build -t snmallocciteam/$IMG:latest -f ci/$IMG .` from the root of the repo, +where `$IMG` is the image you want to rebuild, for example `build_linux_x64` + +If you are building a multiarch image, ie. an image targeting an architecture other than +the one you are running, you will need to install the qemu handler before you can build: +`sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset` + +## Pushing the updated docker image to Docker Hub + +Run `docker push snmallocciteam/$IMG:latest` + +## Permissions + +You must be part of the [snmalloc ci team](https://hub.docker.com/orgs/snmallocciteam) to +push updated images. Contact @mjp41, or @achamayou to be given access.