Skip to content

Commit

Permalink
Fix dependencies for Superset demo (#4705)
Browse files Browse the repository at this point in the history
* Fix superset dependency location

* Add some Superset setup

Co-authored-by: Abhi Vaidyanatha <abhivaidyanatha@Abhis-MacBook-Pro.local>
  • Loading branch information
avaidyanatha and Abhi Vaidyanatha authored Jul 12, 2021
1 parent 5d2fc4a commit 501f863
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions resources/examples/airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,15 @@ Simple enter that ID into your terminal and a connection will be set up in Airfl

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.

## Setting up Superset

As the script has automatically set up a Postgres container for you, just enter these connection details to set up your destination:

![](./assets/postgres_setup.png)

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:

![](./assets/superset_database_setup.png)

## Cleaning Up
Run `down.sh` to clean up the containers. Or run `docker-compose down -v` here and in the root directory, your call.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions resources/examples/airflow/superset/docker-compose-superset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ services:
- redis:/data

db:
env_file: ../docker/.env
env_file: docker/.env
image: postgres:10
container_name: superset_db
restart: unless-stopped
volumes:
- db_home:/var/lib/postgresql/data

superset:
env_file: ../docker/.env-non-dev
env_file: docker/.env-non-dev
image: *superset-image
container_name: superset_app
command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"]
Expand All @@ -56,7 +56,7 @@ services:
image: *superset-image
container_name: superset_init
command: ["/app/docker/docker-init.sh"]
env_file: ../docker/.env-non-dev
env_file: docker/.env-non-dev
depends_on: *superset-depends-on
user: "root"
volumes: *superset-volumes
Expand All @@ -65,7 +65,7 @@ services:
image: *superset-image
container_name: superset_worker
command: ["/app/docker/docker-bootstrap.sh", "worker"]
env_file: ../docker/.env-non-dev
env_file: docker/.env-non-dev
restart: unless-stopped
depends_on: *superset-depends-on
user: "root"
Expand All @@ -75,7 +75,7 @@ services:
image: *superset-image
container_name: superset_worker_beat
command: ["/app/docker/docker-bootstrap.sh", "beat"]
env_file: ../docker/.env-non-dev
env_file: docker/.env-non-dev
restart: unless-stopped
depends_on: *superset-depends-on
user: "root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ REDIS_PORT=6379

FLASK_ENV=development
SUPERSET_ENV=development
SUPERSET_LOAD_EXAMPLES=yes
SUPERSET_LOAD_EXAMPLES=no
CYPRESS_CONFIG=false
SUPERSET_PORT=8088
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Ignore everything
*
.gitignore
# DON'T ignore the .gitignore
!.gitignore
!superset_config.py
Expand Down

0 comments on commit 501f863

Please sign in to comment.