-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-script.sh
More file actions
65 lines (38 loc) · 1.5 KB
/
deploy-script.sh
File metadata and controls
65 lines (38 loc) · 1.5 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
#!/bin/bash
# $1 is the username
# $2 is the authentication token
# $3 is the package name
# $4 is the repo name
# Change directory to datauno-ui
echo Changing directory to $HOME/datauno-docker
cd $HOME/datauno-docker
echo current directory $PWD
docker stop $(docker ps -a -q)
docker login -u $1 -p $2 docker.pkg.github.com
echo "Fetching $3..."
docker pull $3
echo "Successfully pulled the package"
docker run -dit -p 80:80 $3
# Logout
docker logout docker.pkg.github.com
---------------
cd /home
git clone https://github.com/hackstrap/datauno-docker.git
cd datauno-docker
chmod -R 777 /home
1. docker compose -f docker-compose.dev.yml up antimatter redis clickhouse tabix jitsu postgres-metabase metabase mindsdb monit -d
docker compose -f docker-compose.dev.yml down
2. docker compose -f docker-compose.datahub.yml up -d
docker compose -f docker-compose.datahub.yml down
3. docker compose -f docker-compose.airflowfordatahub.yaml up -d
docker compose -f docker-compose.airflowfordatahub.yaml down
##Register DataHub connection (hook) to Airflow
```
docker exec -it `docker ps | grep webserver | cut -d " " -f 1` airflow connections add --conn-type 'datahub_rest' 'datahub_rest_default' --conn-host 'http://datahub-gms:8080'
```
cd OpenDataDiscovery/
4. docker compose -f docker-compose.opendatadiscovery.yaml up -d
docker compose -f docker-compose.opendatadiscovery.yaml down
CREATE DATABASE IF NOT EXISTS testdb
show databases
https://raw.githubusercontent.com/plotly/datasets/master/iris-data.csv