feat: add initial

This commit is contained in:
node_data
2025-02-01 14:33:43 +00:00
commit 1b3f6693ac
24 changed files with 1170 additions and 0 deletions

18
docker/init_superset.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
echo "Performing initial setup..."
# Run database migration and create admin user
superset db upgrade
superset fab create-admin \
--username "${SUPERSET_ADMIN_USERNAME:-admin}" \
--firstname "${SUPERSET_ADMIN_FIRSTNAME:-Admin}" \
--lastname "${SUPERSET_ADMIN_LASTNAME:-User}" \
--email "${SUPERSET_ADMIN_EMAIL:-admin@example.com}" \
--password "${SUPERSET_ADMIN_PASSWORD:-admin}" \
|| echo "Admin user already exists, skipping creation."
# Initialize Superset
superset init
echo "Setup already done, skipping initialization steps."