Skip to content

Commit 71ba9fb

Browse files
committed
Always pull image on arm
1 parent 2a9faf7 commit 71ba9fb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

launcher

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,16 @@ check_prereqs() {
198198
echo "WARNING: Docker version ${test} deprecated, recommend upgrade to ${docker_rec_version} or newer."
199199
fi
200200

201-
case `uname -m` in
201+
arm=false
202+
case $(uname -m) in
202203
armv7l)
203204
echo "ERROR: 32bit arm is not supported. Check if your hardware support arm64, which is supported in experimental capacity."
204205
exit 1
205206
;;
206207
aarch64 | arm64)
207208
echo "WARNING: Support for aarch64 is experimental at the moment. Please report any problems at https://meta.discourse.org/tag/arm "
208209
image="discourse/base:aarch64"
210+
arm=true
209211
read -n 1 -s -r -p "Press any key to continue"
210212
;;
211213
x86_64)
@@ -221,7 +223,8 @@ check_prereqs() {
221223
# 4. discourse docker image is downloaded
222224
test=`$docker_path images | awk '{print $1 ":" $2 }' | grep "$image"`
223225

224-
if [ -z "$test" ]; then
226+
# arm experimental support is on a fixed tag, always pull
227+
if [ -z "$test" ] || [ $arm = true ]; then
225228
echo
226229
echo "WARNING: We are about to start downloading the Discourse base image"
227230
echo "This process may take anywhere between a few minutes to an hour, depending on your network speed"

0 commit comments

Comments
 (0)