-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.ps1
More file actions
22 lines (18 loc) · 764 Bytes
/
init.ps1
File metadata and controls
22 lines (18 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$BITBUCKET_USER="lrakai"
$VCF_BITBUCKET_CLONE_URL="https://$BITBUCKET_USER@bitbucket.org/cloudacademy/labs-vcf-boilerplates.git"
$VCF_BITBUCKET_PATH=".."
$VCF_BITBUCKET_DIR="$VCF_BITBUCKET_PATH/labs-vcf-boilerplates"
$CLOUD="azure" # valid values=aws|azure|gcp
$REQUIREMENTS="$VCF_BITBUCKET_DIR/python3.6/$CLOUD.requirements.txt"
If (!(test-path $CF_BITBUCKET_DIR)) {
git config credential.helper store # store bitbucket credential on disk
git clone $VCF_BITBUCKET_CLONE_URL $VCF_BITBUCKET_DIR
} else {
git -C $VCF_BITBUCKET_DIR pull origin master
}
cp $REQUIREMENTS requirements.txt
rm -rf venv # clean start
virtualenv venv
.\venv\Scripts\activate
pip install pylint autopep8 # dev dependencies
pip install -r requirements.txt # prod dependencies