-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathquickstart.sh
executable file
·48 lines (42 loc) · 1.35 KB
/
quickstart.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
#!/usr/bin/env bash
mode=$1
case "$mode" in
airflow)
echo "Starting Apache Airflow services..."
docker-compose \
--file docker-compose.airflow.yaml \
--file docker-compose.datahub.yaml \
--file docker-compose.hive.yaml \
up --detach
;;
superset)
echo "Starting Apache Superset services..."
docker-compose \
--file docker-compose.datahub.yaml \
--file docker-compose.hive.yaml \
--file docker-compose.superset.yaml \
up --detach
;;
stop)
echo "Stopping services..."
docker-compose \
--file docker-compose.airflow.yaml \
--file docker-compose.datahub.yaml \
--file docker-compose.hive.yaml \
--file docker-compose.superset.yaml \
stop
;;
help)
echo "Choose a group of services to start [airflow|superset|stop]..."
echo "An empty param will start Airflow, Superset, Datahub, Hive and Hadoop together"
;;
*)
echo "Starting all services..."
docker-compose \
--file docker-compose.airflow.yaml \
--file docker-compose.superset.yaml \
--file docker-compose.hive.yaml \
--file docker-compose.datahub.yaml \
up --detach
;;
esac