-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgo.sh
56 lines (39 loc) · 1.17 KB
/
go.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
say() {
echo "HELLO"
}
build() {
echo "Current environment is: $CONDA_DEFAULT_ENV"
echo "Installate dependencies ..."
conda install --file requirements.txt
echo "Clone LTB packages ..."
git clone https://github.com/CURENT/ltb.git --recursive
echo "Install LTB ANDES ..."
cd $HOME/hlcosim/ltb/andes/
pip install -r requirements.txt
andes prep
if [ -f $HOME/.andes/andes.rc ]; then rm $HOME/.andes/andes.rc; fi
cp $HOME/hlcosim/code/andes.rc $HOME/.andes/
echo "Removed default andes config and set the given config."
echo "Install LTB DiME ..."
cd $HOME/hlcosim/ltb/dime/server
make
make install
}
clean() {
echo "Current environment is: $CONDA_DEFAULT_ENV"
echo "Remove LTB packages ..."
if [ -d $HOME/hlcosim/ltb/ ]; then rm -rf $HOME/hlcosim/ltb; fi
echo "Remove LTB DiME file ..."
if [ -f tmp/dime2 ]; then rm tmp/dime2; fi
}
sweb() {
echo "Start the web ..."
python3 -m http.server -d ./static 8810 --bind 0.0.0.0
}
sdime() {
dime -l unix:/tmp/dime2 -l unix:/var/run/dime.sock -l ws:8818 -vv
}
sjupyter() {
sudo -E env "PATH=$PATH" jupyter notebook --allow-root
}