Commit d393bb10 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

chore: 删除不再使用的初始化脚本

parent 9247b6cb
Loading
Loading
Loading
Loading

conda/init.sh

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py312_25.5.1-1-Linux-x86_64.sh

bash Miniconda3-py312_25.5.1-1-Linux-x86_64.sh -b
./miniconda3/bin/conda activate

# exit && ssh airflow

# Create conda environment
conda create --name airflow python=3.12
# conda env remove --name airflow
conda activate airflow
# conda deactivate

pip install "apache-airflow==3.0.4" apache-airflow-providers-google==10.1.0

# 在 Docker 中运行 Airflow
#https://airflow.apache.ac.cn/docs/apache-airflow/stable/howto/docker-compose/index.html#

# 下载 docker-compose.yaml
curl -LfO 'https://airflow.apache.ac.cn/docs/apache-airflow/3.0.0/docker-compose.yaml'
 No newline at end of file

python/init.sh

deleted100644 → 0
+0 −28
Original line number Diff line number Diff line
# Create conda environment
conda create --name airflow python=3.12
# conda env remove --name airflow
conda activate airflow
# conda deactivate


# Install Airflow
#https://github.com/apache/airflow
#https://github.com/apache/airflow?tab=readme-ov-file#installing-from-pypi
pip install 'apache-airflow==3.0.4' \
 --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.0.4/constraints-3.12.txt"

# 设置环境变量
export AIRFLOW_HOME=/Users/cham/CsstProjects/csst-airflow/airflow/python
#airflow db init
#airflow db reset
#airflow db migrate
#airflow webserver -p 8080
# 都不需要了,只需要start standalone
airflow standalone
# 访问http://localhost:8080
# 用户名:admin
# 密码:5R4cYeKnuWm99fNE