-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.ps1
More file actions
24 lines (18 loc) · 895 Bytes
/
init.ps1
File metadata and controls
24 lines (18 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Write-Host "Waiting for services to start up..."
Start-Sleep -Seconds 30
# Initialize Airflow database
docker-compose exec airflow-webserver airflow db init
# Create Airflow admin user
docker-compose exec airflow-webserver airflow users create `
--username admin `
--password admin `
--firstname Admin `
--lastname User `
--role Admin `
--email admin@example.com
# Install requirements in Airflow containers
docker-compose exec airflow-webserver pip install torch==2.0.1 pyvi==0.1.1 emoji==2.6.0 pandas==2.0.2 mlflow==2.4.1 langid==1.1.6 scikit-learn==1.2.2 pyyaml==6.0
docker-compose exec airflow-scheduler pip install torch==2.0.1 pyvi==0.1.1 emoji==2.6.0 pandas==2.0.2 mlflow==2.4.1 langid==1.1.6 scikit-learn==1.2.2 pyyaml==6.0
# Unpause the DAG
docker-compose exec airflow-webserver airflow dags unpause sentiment_analysis_training
Write-Host "Setup complete!"