Sign inSign up

shd8989/airflow

By shd8989

•Updated over 2 years ago

airflow 2.3.2 postgres 14 with age python 3.8

Image
Data science
0

39

shd8989/airflow repository overview

⁠installed programs

  • PostgreSQL : 14.11
  • PG with AGE : 1.5.0
  • Python : 3.8
  • Airflow : 2.3.2

⁠create a container command

docker run --name airflow -it -d -p 8081:8080 -p 8881:8888 -p 15432:5432 -v /home/airflow/share/dags:/home/airflow/airflow/dags:z shd8989/airflow:2.3.2_3.8 bash

⁠database alias

  • aa : psql -d postgres
  • ss : pg_ctl restart

⁠start airflow

  1. start virtual python
source venv/bin/activate
  1. init airflow
airflow db init
  1. create airflow account
airflow users create \
 --username admin \
 --password 1234 \
 --firstname airflow \
 --lastname airflow \
 --role Admin \
 --email [email protected]
  1. set airflow configure file path : /home/airflow/airflow/airflow.cfg
default_timezone = Asia/Seoul
executor = LocalExecutor
load_examples = False
sql_alchemy_conn = postgresql+psycopg2://airflow:[email protected]:5432/airflow?client_encoding=utf8
load_default_connections = False
default_ui_timezone = Asia/Seoul
min_file_process_interval = 300
  1. start web server
airflow webserver --port 8080 &
  1. start scheduler
airflow scheduler &
  1. check airflow on browser
http://localhost:8080

Tag summary

Content type

Image

Digest

sha256:5428a56e9…

Size

541.6 MB

Last updated

over 2 years ago

docker pull shd8989/airflow:2.3.2_3.8