-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_ecui_debug.sh
executable file
·53 lines (35 loc) · 1.03 KB
/
install_ecui_debug.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
#!/bin/bash
cd "$(dirname "$0")"
CONFIG_DIR=$PWD
DEFAULT_WEB_BRANCH=dev
DEFAULT_LLSERVER_BRANCH=dev
sudo apt install cmake
sudo apt install make
sudo apt install git
git submodule init
git submodule update
### Web Server
echo "downloading web server locally..."
cd ..
git clone [email protected]:SpaceTeam/web_ecui_houbolt.git
cd web_ecui_houbolt
git checkout $DEFAULT_WEB_BRANCH
git submodule init
git submodule update
### Low-Level Server
echo "downloading low level server locally..."
cd ..
git clone [email protected]:SpaceTeam/llserver_ecui_houbolt.git
cd llserver_ecui_houbolt
git checkout $DEFAULT_LLSERVER_BRANCH
git submodule init
git submodule update
### docker compose
echo "installing docker images..."
#influx
CONFIG_DIR=$CONFIG_DIR docker compose up --build -d
docker exec influxdb influx -execute 'CREATE DATABASE gse'
docker compose stop grafana
cp $CONFIG_DIR/grafana_backup/lib/grafana.db $CONFIG_DIR/grafana/data/grafana.db
cp -r $CONFIG_DIR/grafana_backup/lib/plugins $CONFIG_DIR/grafana/data/
docker compose start grafana