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
This commit is contained in:
David Taylor 2021-05-21 16:01:59 +01:00
parent 73050d9049
commit 78f9d47ab1

View File

@ -60,6 +60,13 @@ while [ "${#@}" -ne "0" ]; do
shift shift
done 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 source in: ${SOURCE_DIR}"
echo "Using data in: ${DATA_DIR}" echo "Using data in: ${DATA_DIR}"