From 78f9d47ab140b949398c3cabf425b65243494739 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 21 May 2021 16:01:59 +0100 Subject: [PATCH] DEV: Add non-x86_64 warning to `d/boot_dev` Running a development environment using Docker's qemu architecture emulation is currently not possible because `inotify` is not supported: https://github.com/docker/for-mac/issues/5321 --- bin/docker/boot_dev | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/docker/boot_dev b/bin/docker/boot_dev index 0eccb43484c..52b6353809e 100755 --- a/bin/docker/boot_dev +++ b/bin/docker/boot_dev @@ -60,6 +60,13 @@ while [ "${#@}" -ne "0" ]; do shift done +if [[ $(docker info -f "{{.Architecture}}") != *x86_64* ]]; then + echo "WARNING: Docker architecture is not x86_64." + echo "Discourse development is unlikely to work using Docker's architecture emulation." + echo "Please try a native development installation." + sleep 1 +fi + echo "Using source in: ${SOURCE_DIR}" echo "Using data in: ${DATA_DIR}"