Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit 7cb7b60

Browse files
committed
terminus-container: give error on other CPU architectures
x86_64 is the only officially supported architecture. There is no official Docker image yet for other architectures and the script can therefore not be run.
1 parent adb9cc2 commit 7cb7b60

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

terminus-container

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,22 @@ else
193193
fi
194194
}
195195

196+
# Run platform check
197+
function _platform_check {
198+
PLATFORM_ARCHITECTURE=$(uname -m)
199+
if [[ $PLATFORM_ARCHITECTURE != "x86_64" ]]; then
200+
printf "\
201+
There are no Docker images for other CPU architectures than x86_64 yet.
202+
You can try to manually compile the components of TerminusDB by following the
203+
instructions on the terminus-server repository although other architectures are not
204+
officially supported yet.
205+
https://github.com/terminusdb/terminus-server/blob/master/docs/BUILD.md \n"
206+
exit 4
207+
fi
208+
}
209+
210+
_platform_check
211+
196212
#
197213
# PROCESS ARGS
198214
#

0 commit comments

Comments
 (0)