forked from GoogleCloudPlatform/professional-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
21 lines (16 loc) · 638 Bytes
/
install.sh
File metadata and controls
21 lines (16 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
echo "---------------Installing iam-recommender-at-scale---------------"
BASEDIR=$HOME/iam-recommender-at-scale
TEMPDIR=/tmp/professional-service
rm -rf "$BASEDIR"
rm -rf $TEMPDIR
mkdir "$BASEDIR"
wget -P $TEMPDIR https://github.com/misabhishek/professional-services/archive/master.zip
unzip $TEMPDIR/master.zip 'professional-services-master/tools/iam-recommender-at-scale/*' -d $TEMPDIR
mv $TEMPDIR/professional-services-master/tools/iam-recommender-at-scale/* "$BASEDIR"
rm -rf $TEMPDIR
cd "$BASEDIR"/ || exit
virtualenv -p python3 env
# shellcheck disable=SC1091
source env/bin/activate
pip install -r requirement.txt