Spaces:
Runtime error
Runtime error
Update entrypoint.sh
Browse files- entrypoint.sh +2 -14
entrypoint.sh
CHANGED
|
@@ -1,19 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
airflow db init
|
| 5 |
-
|
| 6 |
-
# Create an admin user (you can modify this section with your desired credentials)
|
| 7 |
-
airflow users create \
|
| 8 |
-
--username admin \
|
| 9 |
-
--firstname Admin \
|
| 10 |
-
--lastname User \
|
| 11 |
-
--role Admin \
|
| 12 |
-
--email admin@example.com \
|
| 13 |
-
--password admin
|
| 14 |
-
|
| 15 |
-
# Start the web server on the specified port
|
| 16 |
airflow webserver --port 7860 &
|
| 17 |
|
| 18 |
# Start the scheduler
|
| 19 |
-
exec airflow scheduler
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# Start the webserver in the background
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
airflow webserver --port 7860 &
|
| 5 |
|
| 6 |
# Start the scheduler
|
| 7 |
+
exec airflow scheduler
|