Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 501f863

Browse files
avaidyanathaAbhi Vaidyanatha
and
Abhi Vaidyanatha
authored
Fix dependencies for Superset demo (airbytehq#4705)
* Fix superset dependency location * Add some Superset setup Co-authored-by: Abhi Vaidyanatha <[email protected]>
1 parent 5d2fc4a commit 501f863

15 files changed

+17
-7
lines changed

resources/examples/airflow/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,15 @@ Simple enter that ID into your terminal and a connection will be set up in Airfl
1313

1414
Trigger the DAG with the switch in the top right and you should be in business! If it doesn't automatically run, just hit the play button in the top right to kick off the sync.
1515

16+
## Setting up Superset
17+
18+
As the script has automatically set up a Postgres container for you, just enter these connection details to set up your destination:
19+
20+
![](./assets/postgres_setup.png)
21+
22+
Head over to http://localhost:8088 to get to the Superset UI. Enter `admin` as your username and `admin` as your password. Then head to the `Data` section in the top bar and navigate to `Databases`. Click `+DATABASE` and enter the following config:
23+
24+
![](./assets/superset_database_setup.png)
25+
1626
## Cleaning Up
1727
Run `down.sh` to clean up the containers. Or run `docker-compose down -v` here and in the root directory, your call.
Loading
Loading

resources/examples/airflow/superset/docker-compose-superset.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ services:
3333
- redis:/data
3434

3535
db:
36-
env_file: ../docker/.env
36+
env_file: docker/.env
3737
image: postgres:10
3838
container_name: superset_db
3939
restart: unless-stopped
4040
volumes:
4141
- db_home:/var/lib/postgresql/data
4242

4343
superset:
44-
env_file: ../docker/.env-non-dev
44+
env_file: docker/.env-non-dev
4545
image: *superset-image
4646
container_name: superset_app
4747
command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"]
@@ -56,7 +56,7 @@ services:
5656
image: *superset-image
5757
container_name: superset_init
5858
command: ["/app/docker/docker-init.sh"]
59-
env_file: ../docker/.env-non-dev
59+
env_file: docker/.env-non-dev
6060
depends_on: *superset-depends-on
6161
user: "root"
6262
volumes: *superset-volumes
@@ -65,7 +65,7 @@ services:
6565
image: *superset-image
6666
container_name: superset_worker
6767
command: ["/app/docker/docker-bootstrap.sh", "worker"]
68-
env_file: ../docker/.env-non-dev
68+
env_file: docker/.env-non-dev
6969
restart: unless-stopped
7070
depends_on: *superset-depends-on
7171
user: "root"
@@ -75,7 +75,7 @@ services:
7575
image: *superset-image
7676
container_name: superset_worker_beat
7777
command: ["/app/docker/docker-bootstrap.sh", "beat"]
78-
env_file: ../docker/.env-non-dev
78+
env_file: docker/.env-non-dev
7979
restart: unless-stopped
8080
depends_on: *superset-depends-on
8181
user: "root"

resources/examples/airflow/docker/.env resources/examples/airflow/superset/docker/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ REDIS_PORT=6379
4141

4242
FLASK_ENV=development
4343
SUPERSET_ENV=development
44-
SUPERSET_LOAD_EXAMPLES=yes
44+
SUPERSET_LOAD_EXAMPLES=no
4545
CYPRESS_CONFIG=false
4646
SUPERSET_PORT=8088

resources/examples/airflow/docker/pythonpath_dev/.gitignore resources/examples/airflow/superset/docker/pythonpath_dev/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717

1818
# Ignore everything
19-
*
19+
.gitignore
2020
# DON'T ignore the .gitignore
2121
!.gitignore
2222
!superset_config.py

0 commit comments

Comments
 (0)