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

KH-539: Add support for importing Superset dashboards #100

Merged
merged 1 commit into from
Jun 6, 2024
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
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ SUPERSET_DB_PASSWORD=superset
SUPERSET_ADMIN_USERNAME=admin
SUPERSET_ADMIN_PASSWORD=password
SUPERSET_LOAD_EXAMPLES=no
SUPERSET_DASHBOARDS_PATH=

# Superset Default Analytics DB
ANALYTICS_DB_USER=analytics
Expand Down
3 changes: 2 additions & 1 deletion docker-compose-superset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
- ADMIN_USERNAME=${SUPERSET_ADMIN_USERNAME}
- ADMIN_PASSWORD=${SUPERSET_ADMIN_PASSWORD}
- ANALYTICS_DB_PASSWORD=${ANALYTICS_DB_PASSWORD}
image: &superset-image amancevice/superset:2.1.0
image: &superset-image amancevice/superset:4.0.0
labels:
traefik.enable: "true"
traefik.http.routers.superset.rule: "Host(`${SUPERSET_HOSTNAME}`)"
Expand Down Expand Up @@ -60,6 +60,7 @@ services:
restart: on-failure
volumes:
- ${SUPERSET_CONFIG_PATH}/:/etc/superset/
- ${SUPERSET_DASHBOARDS_PATH}/:/dashboards/

redis:
image: redis:7
Expand Down
2 changes: 2 additions & 0 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function exportPaths () {
export OPENMRS_FRONTEND_CONFIG_PATH=$DISTRO_PATH/configs/openmrs/frontend_config/
export SQL_SCRIPTS_PATH=$DISTRO_PATH/data/
export SUPERSET_CONFIG_PATH=$DISTRO_PATH/configs/superset/
export SUPERSET_DASHBOARDS_PATH=$DISTRO_PATH/configs/superset/dashboard-assets/
export ERPNEXT_CONFIG_PATH=$DISTRO_PATH/configs/erpnext/initializer_config/
export ERPNEXT_SCRIPTS_PATH=$DISTRO_PATH/binaries/erpnext/scripts/

Expand All @@ -52,6 +53,7 @@ function exportPaths () {
echo "→ OPENMRS_FRONTEND_CONFIG_PATH=$OPENMRS_FRONTEND_CONFIG_PATH"
echo "→ SQL_SCRIPTS_PATH=$SQL_SCRIPTS_PATH"
echo "→ SUPERSET_CONFIG_PATH=$SUPERSET_CONFIG_PATH"
echo "→ SUPERSET_DASHBOARDS_PATH=$SUPERSET_DASHBOARDS_PATH"
echo "→ ERPNEXT_CONFIG_PATH=$ERPNEXT_CONFIG_PATH"
echo "→ ERPNEXT_SCRIPTS_PATH=$ERPNEXT_SCRIPTS_PATH"

Expand Down