Skip to content

Commit

Permalink
KH-539: Add support for importing Superset dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
enyachoke committed Jun 6, 2024
1 parent a5587b9 commit c9f1093
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
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

0 comments on commit c9f1093

Please sign in to comment.