Skip to content

Commit

Permalink
Airflow setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Feb 22, 2024
1 parent 40548d5 commit d1ce962
Show file tree
Hide file tree
Showing 6 changed files with 2,260 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Local Dev
*.log
*.err
*.pid
*.out
.DS_Store

# Airflow
logs
airflow.db
standalone_admin_password.txt
webserver_config.py

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repos:
- repo: https://github.com/psf/black
rev: "22.8.0"
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
- repo: https://github.com/pycqa/isort
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
hooks:
- id: flake8
args: ["--config=setup.cfg"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM apache/airflow:2.8.1-python3.10

ENV AIRFLOW_HOME=/opt/airflow
WORKDIR /opt/airflow

ENV PYTHONBUFFERED=0
ENV AIRFLOW__LOGGING__LOGGING_LEVEL=INFO

# install your pip packages
COPY requirements.txt ./requirements.txt

COPY dags ./dags
COPY airflow.cfg ./airflow.cfg

RUN pip install --upgrade pip &&\
pip install --no-cache-dir --upgrade setuptools==59.1.1 &&\
pip install --no-cache-dir --upgrade wheel &&\
pip install --no-cache-dir --user -r requirements.txt
Loading

0 comments on commit d1ce962

Please sign in to comment.