From 33c5bc5b4dc37049c67995bbd107b91c640d71eb Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 15 Apr 2022 18:18:24 -0700 Subject: [PATCH] docker: Document the PostgreSQL Dockerfile build steps. --- Dockerfile-postgresql | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile-postgresql b/Dockerfile-postgresql index f8d0dc2759..15cfdc0452 100644 --- a/Dockerfile-postgresql +++ b/Dockerfile-postgresql @@ -1,5 +1,11 @@ -# To build run `docker build -f Dockerfile-postgresql .` from the root of the -# zulip repo. +# This is a multiarch Dockerfile. See https://docs.docker.com/desktop/multi-arch/ +# +# To set up the first time: +# docker buildx create --name multiarch --use +# +# To build: +# docker buildx build --platform linux/amd64,linux/arm64 \ +# -f ./Dockerfile-postgresql -t zulip/zulip-postgresql:14 --push . # Currently the PostgreSQL images do not support automatic upgrading of # the on-disk data in volumes. So the base image can not currently be upgraded