airflow / entrypoint.sh
jonathanjordan21's picture
Create entrypoint.sh
1243821 verified
raw
history blame
427 Bytes
#!/bin/bash
# Initialize the database
airflow db init
# Create an admin user (you can modify this section with your desired credentials)
airflow users create \
--username admin \
--firstname Admin \
--lastname User \
--role Admin \
--email admin@example.com \
--password admin
# Start the web server on the specified port
airflow webserver --port 7860 &
# Start the scheduler
exec airflow scheduler