-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure_docker.sh
More file actions
executable file
·37 lines (32 loc) · 1.03 KB
/
configure_docker.sh
File metadata and controls
executable file
·37 lines (32 loc) · 1.03 KB
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
#!/bin/bash
# Run Mariadb.
echo "Running mariadbd ..."
service mariadb start
# sleep until mariadb is up
sleep 10
# Setup the DB if it is the first time we run
if [[ -f "/home/configure_db.sql" ]]; then
echo "Configuring mariadb ..."
mariadb -u root < /home/configure_db.sql
if [ $? -eq 0 ]; then
echo "mariadb success!"
rm /home/configure_db.sql
fi
# Run cargo raze.
echo "Running cargo-raze ..."
mkdir -p /tmp/cargo-raze/doesnt/exist/
cd /home/k9db/k9db/proxy && /root/.cargo/bin/cargo raze && cd -
cd /home/k9db/experiments/lobsters && /root/.cargo/bin/cargo raze && cd -
cd /home/k9db/experiments/ownCloud && /root/.cargo/bin/cargo raze && cd -
cd /home/k9db/experiments/vote && /root/.cargo/bin/cargo raze && cd -
# Install plotting dependencies.
echo "Installing plotting dependencies ..."
cd /home/k9db/experiments/scripts/plotting
rm -rf __pycache__ venv
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt || /bin/true
deactivate
cd -
echo "Configuration done!"
fi