Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create scripts/install.sh to download and execute the TUI installer based on platforms #1777

Closed
achimnol opened this issue Dec 12, 2023 · 0 comments · Fixed by #2037
Closed
Assignees
Labels
comp:installer Related to Installer urgency:4 As soon as feasible, implementation is essential.
Milestone

Comments

@achimnol
Copy link
Member

achimnol commented Dec 12, 2023

We need a wrapper script like:

#! /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
exec "./backendai-install-${PLATFORM}" install "$@"

The script will be linked in other places such as our website, etc.

cc: @kimjmin

@achimnol achimnol added type:feature Add new features comp:installer Related to Installer urgency:4 As soon as feasible, implementation is essential. labels Dec 12, 2023
@achimnol achimnol added this to the 24.03 milestone Dec 12, 2023
@achimnol achimnol removed the type:feature Add new features label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:installer Related to Installer urgency:4 As soon as feasible, implementation is essential.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants