Skip to content
Merged
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
9 changes: 7 additions & 2 deletions superset/contrib/docker/docker-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ if ! fabmanager list-users --app superset | grep -q $ADMIN_LOGIN; then
superset init

# Add dashboards
superset import_dashboards --recursive --path /home/superset/dashboards/gitbase
superset import_dashboards --path /home/superset/dashboards/gitbase/welcome.json

# Add metadata dashboards and set welcome dashboard as a default
if [ ! -z "$SYNC_MODE" ]; then
superset import_dashboards --recursive --path /home/superset/dashboards/metadata
sleep 2s
superset import_dashboards --path /home/superset/dashboards/metadata/placeholder.json

sleep 2s
superset import_dashboards --path /home/superset/dashboards/metadata/collaboration.json

python set_default_dashboard.py
fi
fi
Expand Down