-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
63 lines (53 loc) · 1.89 KB
/
Copy pathrun.sh
File metadata and controls
63 lines (53 loc) · 1.89 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Ensure a command is provided
if [ -z "$1" ]; then
echo "Usage: $0 {up|down|up-without-build}"
exit 1
fi
COMMAND=$1
# Execute the Docker Compose command
case "$COMMAND" in
up)
docker compose -f docker-compose.yaml up -d
# Initialize Conda for the current shell session
eval "$(conda shell.bash hook)"
conda activate emotiai
python data/create_table.py
python data/insert_into_table.py
python data/create_label_table.py
python data/insert_label_data.py
docker compose -f docker-compose.airflow.yaml up -d
docker compose -f docker-compose.jenkins.yaml up -d
docker compose -f docker-compose.api.yaml up -d
docker compose -f docker-compose.prom-graf.yaml up -d
docker compose -f docker-compose.elk.yaml up -d
./keserve/build_kserve.sh
./kserve/run_kserve.sh
;;
down)
docker compose -f docker-compose.airflow.yaml down
docker compose -f docker-compose.yaml down
;;
up-without-build)
docker compose -f docker-compose.elk.yaml up -d --no-build
docker compose -f docker-compose.prom-graf.yaml up -d --no-build
docker compose -f docker-compose.yaml up -d --no-build
docker compose -f docker-compose.airflow.yaml up -d --no-build
docker compose -f docker-compose.api.yaml up -d --no-build
docker compose -f docker-compose.jenkins.yaml up -d --no-build
./kserve/run_kserve.sh
;;
insert-data)
# Initialize Conda for the current shell session
eval "$(conda shell.bash hook)"
conda activate emotiai
python data/create_table.py
python data/insert_into_table.py
python data/create_label_table.py
python data/insert_label_data.py
;;
*)
echo "Invalid command: $COMMAND"
exit 1
;;
esac