Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienheureux committed Jan 16, 2025
1 parent b5050e4 commit d3dc731
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
path: ./.venv
key: venv-dev-airflow-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install --with dev,airflow --no-root
run: poetry sync --with dev,airflow --no-root
- name: Run unit tests
run: poetry run pytest unit_tests
- name: Run integration tests
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
path: ./.venv
key: venv-dev-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install --with dev --no-root
run: poetry sync --with dev --no-root

- name: Set env variables
run: cp .env.template .env
Expand Down
24 changes: 12 additions & 12 deletions airflow-scheduler.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# Builder gdal
# --- --- --- ---
FROM apache/airflow:2.10.4 AS builder
USER root

RUN apt-get update && \
apt-get install -y --no-install-recommends \
gdal-bin libgdal-dev

# Builder python
# --- --- --- ---
FROM apache/airflow:2.10.4 AS python-builder

USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libpq-dev gcc python3-dev


FROM apache/airflow:2.10.4 AS python-builder
ARG POETRY_VERSION=2.0
ENV POETRY_NO_INTERACTION=1 \
POETRY_CACHE_DIR=/opt/.cache

USER ${AIRFLOW_UID:-50000}
RUN pip install "poetry==${POETRY_VERSION}"


USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libpq-dev gcc python3-dev

WORKDIR /opt/airflow/
COPY pyproject.toml poetry.lock ./
RUN --mount=type=cache,target=${POETRY_CACHE_DIR} poetry sync --with airflow --no-root


RUN --mount=type=cache,target=${POETRY_CACHE_DIR} poetry sync --with airflow

# Runtime
# --- --- --- ---
FROM apache/airflow:2.10.4 AS scheduler
USER root
WORKDIR /opt/
Expand Down
2 changes: 1 addition & 1 deletion airflow-webserver.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get update && \

WORKDIR /opt/airflow/
COPY pyproject.toml poetry.lock ./
RUN --mount=type=cache,target=${POETRY_CACHE_DIR} poetry sync --with airflow --no-root
RUN --mount=type=cache,target=${POETRY_CACHE_DIR} poetry sync --with airflow

# Runtime
# --- --- --- ---
Expand Down

0 comments on commit d3dc731

Please sign in to comment.