Skip to content

Commit

Permalink
fix(dags-container): Ensure duckdb httpfs extension is correct version (
Browse files Browse the repository at this point in the history
  • Loading branch information
JossWhittle authored Apr 9, 2024
1 parent 8c3f572 commit 73a6497
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions containers/dags/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ RUN pip install --no-cache-dir pyclean && \
pip uninstall -y pyclean

# Install duckdb extensions
COPY containers/dags/httpfs.duckdb_extension.gz /opt/duckdb/
USER root
RUN gzip -d /opt/duckdb/httpfs.duckdb_extension.gz && \
chown airflow:root /opt/duckdb/httpfs.duckdb_extension
USER airflow
RUN duckcli -D ":memory:" -e "INSTALL httpfs; LOAD httpfs" && \
python3 -c "import duckdb; duckdb.connect(':memory:').sql('LOAD httpfs')"


# Copy dags code
COPY dags /opt/airflow/dags
Binary file removed containers/dags/httpfs.duckdb_extension.gz
Binary file not shown.

0 comments on commit 73a6497

Please sign in to comment.