Skip to content

Instantly share code, notes, and snippets.

@jaraco
Created March 7, 2024 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaraco/bb5d91c6bb309da1fcb27623b2f59e20 to your computer and use it in GitHub Desktop.
Save jaraco/bb5d91c6bb309da1fcb27623b2f59e20 to your computer and use it in GitHub Desktop.
diff --git a/airflow/Dockerfile b/airflow/Dockerfile
index 1dffaba..a109ca1 100644
--- a/airflow/Dockerfile
+++ b/airflow/Dockerfile
@@ -2,7 +2,7 @@
FROM apache/airflow:slim-2.8.1-python3.11
ARG DUCKDB_VERSION=0.9.2
-ARG SLING_VERSION=1.0.73
+ARG SLING_VERSION=1.1.2
# global pip is airflow
COPY airflow/requirements-airflow.txt ./
@@ -43,9 +43,7 @@ RUN export DUCK_ARCH=$(uname -m | sed -e s/arm64/aarch64/ | sed -e s/x86_64/amd6
# install sling
# XXX just stuff it into a pre-existing PATH directory
-# XXX sling does not support docker on M1 Apple silicon
-# see: https://github.com/slingdata-io/sling-cli/issues/130
-RUN export SLING_ARCH=$(uname -m | sed -e s/x86_64/amd64/) \
+RUN export SLING_ARCH=$(uname -m | sed -e s/arm64/aarch64/ | sed -e s/x86_64/amd64/) \
&& wget -q -c https://github.com/slingdata-io/sling-cli/releases/download/v${SLING_VERSION}/sling_linux_${SLING_ARCH}.tar.gz \
&& tar -xf sling_linux_${SLING_ARCH}.tar.gz sling \
&& mv sling ${AIRFLOW_USER_HOME_DIR}/.local/bin \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment