forked from biobakery/biobakery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_biobakery.command
executable file
·22 lines (15 loc) · 1.12 KB
/
start_biobakery.command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# check for vagrant (if installed print version else print error then wait 30 seconds and close window)
vagrant -v || { echo ERROR: Please install vagrant; sleep 30; exit; }
# check for virtualbox (if installed print version else print error then wait 30 seconds and close window)
vboxmanage -v || { echo ERROR: Please install virtualbox; sleep 30; exit; }
# create a biobakery folder in the home directory if it does not already exist
mkdir -p $HOME/biobakery
cd $HOME/biobakery
printf "\n\n\nThanks for downloading the bioBakery! During the first execution, we'll download a fairly large virtual image with all of the software environment pre-installed. This may take a while depending on your Internet connection, but it only happens once. After that, simply run the bioBakery using this launcher. Thanks for using our software!\n\n"
# create biobakery vagrantfile, if it does not exist
[ -f $HOME/biobakery/Vagrantfile ] || vagrant init biobakery/biobakery
# start biobakery (and also install the first time command is run)
vagrant up --provider virtualbox
# keep terminal open for debugging purposes if needed
sleep 30