Skip to content

Commit

Permalink
Add setep to update datasource from envs
Browse files Browse the repository at this point in the history
  • Loading branch information
enyachoke committed Jun 17, 2024
1 parent e019f3c commit 1bd3124
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions distro/configs/superset/superset-init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
STEP_CNT=5
STEP_CNT=6

echo_step() {
cat <<EOF
Expand Down Expand Up @@ -41,4 +41,7 @@ if [ "$SUPERSET_LOAD_EXAMPLES" = "yes" ]; then
fi
echo_step "5" "Start" "Updating dashboards"
superset import-directory /dashboards -f -o
echo_step "5" "Complete" "Updating dashboards"
echo_step "5" "Complete" "Updating dashboards"
echo_step "6" "Start" "Updating datasources"
superset set_database_uri --database_name $ANALYTICS_DATASOURCE_NAME --uri postgresql://$ANALYTICS_DB_USER:$ANALYTICS_DB_PASSWORD@$ANALYTICS_DB_HOST:5432/$ANALYTICS_DB_NAME
echo_step "6" "Complete" "Updating datasources"

0 comments on commit 1bd3124

Please sign in to comment.