Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add non-x86_64 warning to `d/boot_dev`

David Taylor78f9d47ab140
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}"