Skip to content

Commit

Permalink
chore: Supports multi-platform install with one script (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaminyam committed Apr 19, 2024
1 parent 5d69e72 commit 8ebfb69
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#! /bin/bash
OS_TYPE=$(uname -s)
CPU_ARCH=$(uname -m)
SYSTEM="$OS_TYPE $CPU_ARCH"
case "$SYSTEM" in
"Linux x86_64" )
PLATFORM="linux-x86_64"
;;
"Linux aarch64" )
PLATFORM="linux-aarch64"
;;
"Darwin x86_64" )
PLATFORM="macos-x86_64"
;;
"Darwin arm64" )
PLATFORM="macos-aarch64"
;;
* )
echo "Sorry, Backend.AI does not support this platform."
exit 1
;;
esac

# TODO: add GitHub release download
curl -L https://bnd.ai/installer-stable-"${PLATFORM}" -o "backendai-install-${PLATFORM}"
chmod +x "backendai-install-${PLATFORM}"

exec "./backendai-install-${PLATFORM}" install "$@"

0 comments on commit 8ebfb69

Please sign in to comment.