-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworklog
34 lines (26 loc) · 1.24 KB
/
worklog
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
31
32
33
34
#Set up repository and install docker
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo usermod -a -G docker ${USER}
exit
#Install Miniconda3
sudo apt-get install bzip2
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
#Install JRE
conda install -c cyclus java-jre
#Install rabix
wget https://github.com/rabix/bunny/releases/download/v1.0.5-1/rabix-1.0.5.tar.gz
tar -xvf rabix-1.0.5.tar.gz
#Create disk snapshot
gcloud compute disks snapshot wliang-cwlrunner --snapshot-names wliang-cwlrunner-snapshotdisk
#Create disk
gcloud compute disks create wliang-cwlrunner-template --source-snapshot=wliang-cwlrunner-snapshotdisk
#Launch VM instance
gcloud compute instances create wliang-test --disk name=wliang-cwlrunner-template,boot=yes --metadata-from-file startup-script=start.sh --scopes storage-full
gcloud compute snapshots delete wliang-cwlrunner-snapshotdisk