Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependencies for Superset demo #4705

Merged
merged 2 commits into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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