openfoundry-ai / model_manager

Model Manager is a Python package that simplifies the process of deploying an open source AI model to your own cloud.
https://www.openfoundry.ai
MIT License
282 stars 18 forks source link

Update setup.sh to support linux systems #3

Closed abhishek203 closed 6 months ago

abhishek203 commented 6 months ago

The AWS CLI installation lines in setup.sh file works only for MacOS. The following change works in Ubuntu systems:

if ! command -v aws &> /dev/null
then
    OS="$(uname -s)"
    case "${OS}" in
        Linux*)     
            curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
            unzip awscliv2.zip
            sudo ./aws/install
            ;;
        Darwin*)    
            curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
            sudo installer -pkg AWSCLIV2.pkg -target /
            ;;
        *)          
            echo "Unsupported OS: ${OS}"
            exit 1
            ;;
    esac
fi

Model_manager is a fantastic initiative. I would love to see how this evolves.

Please create a discord channel as well.

arthurchi93 commented 6 months ago

Fixed in the most recent branch and thank you for checking us out. I'll reach out when we put together a discord / community!