-
Notifications
You must be signed in to change notification settings - Fork 3
/
quickstart.sh
executable file
·63 lines (59 loc) · 1.64 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
set -e
mode=$1
case "$mode" in
airflow)
echo "Starting Apache Airflow and Marquez services..."
docker-compose \
--file docker-compose.airflow.yaml \
--file docker-compose.marquez.yaml \
up --detach
echo "Check it:"
echo " Airflow: http://localhost:8080"
echo " Marquez: http://localhost:3000"
;;
dbt)
cd dbt
echo "Creating catalog.json..."
dbt docs generate --profiles-dir profiles
echo "Creating manifest.json..."
dbt compile --profiles-dir profiles
;;
superset)
echo "Starting Apache Superset services..."
docker-compose \
--file docker-compose.superset.yaml \
up --detach
echo "Superset: http://localhost:8088"
;;
stop)
echo "Stopping services..."
docker-compose \
--file docker-compose.airflow.yaml \
--file docker-compose.marquez.yaml \
--file docker-compose.superset.yaml \
stop
;;
help)
echo "Choose a group of services to start [airflow|dbt|superset|stop]..."
echo "An empty param will start Airflow, Marquez and Superset together"
;;
*)
cd dbt
echo "Creating catalog.json..."
dbt docs generate --profiles-dir profiles
echo "Creating manifest.json..."
dbt compile --profiles-dir profiles
cd ..
echo "Starting all services..."
docker-compose \
--file docker-compose.airflow.yaml \
--file docker-compose.marquez.yaml \
--file docker-compose.superset.yaml \
up --detach
echo "Check it:"
echo " Airflow: http://localhost:8080"
echo " Marquez: http://localhost:3000"
echo " Superset: http://localhost:8088"
;;
esac