forked from openfoundry-ai/model_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
30 lines (30 loc) · 866 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
python3 -m ensurepip --upgrade
make
source venv/bin/activate
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}. See https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html"
exit 1
;;
esac
fi
aws configure set region us-east-1 && aws configure
touch .env
if ! grep -q "SAGEMAKER_ROLE" .env
then
bash ./scripts/setup_role.sh
fi
source venv/bin/activate