forked from DanielKneipp/aws-sagemaker-stable-diffusion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
26 lines (20 loc) · 639 Bytes
/
setup.sh
File metadata and controls
26 lines (20 loc) · 639 Bytes
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
#!/usr/bin/env bash
set -e
INSTALL_TOOLING="${INSTALL_TOOLING:=false}"
if [[ $INSTALL_TOOLING == 'true' ]]; then
asdf plugin add awscli
asdf plugin-add terraform https://github.com/asdf-community/asdf-hashicorp.git
asdf install
pyenv install -s
fi
if [[ $OSTYPE == 'darwin'* ]]; then
brew install pigz git-lfs
elif [[ $OSTYPE == 'linux-gnu'* ]]; then
# Assuming debian-based
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt install git-lfs pigz
else
>&2 echo "OS not known" && exit 1
fi
git lfs install
git submodule update --init --recursive