yehoshuadimarsky commented on issue #37785: URL: https://github.com/apache/airflow/issues/37785#issuecomment-1975006668
Just tried again, this time on my M1 Macbook (2020 Pro), doesn't work: ```zsh ~/Documents/GitHub/ git clone [email protected]:apache/airflow.git airflow-upstream Cloning into 'airflow-upstream'... remote: Enumerating objects: 400720, done. remote: Counting objects: 100% (662/662), done. remote: Compressing objects: 100% (410/410), done. remote: Total 400720 (delta 282), reused 573 (delta 244), pack-reused 400058 Receiving objects: 100% (400720/400720), 258.46 MiB | 10.83 MiB/s, done. Resolving deltas: 100% (311879/311879), done. ~/Documents/GitHub/ cd airflow-upstream ~/Documents/GitHub/airflow-upstream/ [main] git checkout use-uv-for-prod-image branch 'use-uv-for-prod-image' set up to track 'origin/use-uv-for-prod-image'. Switched to a new branch 'use-uv-for-prod-image' ``` Here's the command and the error output: <details> ```zsh ~/Documents/GitHub/airflow-upstream/ [use-uv-for-prod-image] export AIRFLOW_VERSION=2.8.2 export DOCKER_BUILDKIT=1 docker build . \ --build-arg PYTHON_BASE_IMAGE="python:3.8-slim-bookworm" \ --build-arg AIRFLOW_VERSION="${AIRFLOW_VERSION}" \ --tag "my-tag:0.0.1" [+] Building 75.3s (59/72) docker:desktop-linux => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 72.08kB 0.0s => resolve image config for docker.io/docker/dockerfile:1.4 0.5s => docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc 0.0s => => resolve docker.io/docker/dockerfile:1.4@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc 0.0s => => sha256:8d5998862fafcacec68298ab34c9c28973251a5082836f31de0188cd914fae33 2.36kB / 2.36kB 0.0s => => sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc 2.00kB / 2.00kB 0.0s => => sha256:f259fd86ee23d7b4a2944432e3a09f45fa288bb84bfbd222b19b2abc7ddffbb9 528B / 528B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 3.12kB 0.0s => [internal] load metadata for docker.io/library/python:3.8-slim-bookworm 0.5s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.0s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.1s => [main 1/18] FROM docker.io/library/python:3.8-slim-bookworm@sha256:23252009f10b4af8a8c90409c54a866473a251b001b74902f04631dd54cfccc8 4.1s => => resolve docker.io/library/python:3.8-slim-bookworm@sha256:23252009f10b4af8a8c90409c54a866473a251b001b74902f04631dd54cfccc8 0.1s => => sha256:515463c9b88285509388c9d127a8a56cf9602cd56ce59356c283b978897d7104 1.37kB / 1.37kB 0.0s => => sha256:054df0836f5230590646d8b7c62c54009a80c5c95c0c79e5430c3ef0f9c870a7 6.98kB / 6.98kB 0.0s => => sha256:f546e941f15b76df3d982d56985432b05bc065e3923fb35be25a4d33d5c0f911 29.16MB / 29.16MB 1.7s => => sha256:24935aba99a712c5a6efc86118762b0f914e1577a2c072dbc1fac88d3cfbc37c 3.32MB / 3.32MB 0.6s => => sha256:b7885ba641278df6e419c1c888a8981d86aeb940cc1e17c99d07acb42ddd8d57 13.74MB / 13.74MB 1.5s => => sha256:23252009f10b4af8a8c90409c54a866473a251b001b74902f04631dd54cfccc8 1.86kB / 1.86kB 0.0s => => sha256:ab172a9f49e99303f4e3f13978812bad85a6ccb74545e95f0a3c60dcf550642c 244B / 244B 0.8s => => sha256:f5995b23a281d55dc1aada4458690373f1fe4cf0ac1d711a01a4baaf10bff0bb 3.13MB / 3.13MB 1.3s => => extracting sha256:f546e941f15b76df3d982d56985432b05bc065e3923fb35be25a4d33d5c0f911 1.5s => => extracting sha256:24935aba99a712c5a6efc86118762b0f914e1577a2c072dbc1fac88d3cfbc37c 0.1s => => extracting sha256:b7885ba641278df6e419c1c888a8981d86aeb940cc1e17c99d07acb42ddd8d57 0.4s => => extracting sha256:ab172a9f49e99303f4e3f13978812bad85a6ccb74545e95f0a3c60dcf550642c 0.0s => => extracting sha256:f5995b23a281d55dc1aada4458690373f1fe4cf0ac1d711a01a4baaf10bff0bb 0.2s => [internal] settings cache mount permissions 0.1s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.0s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.1s => [internal] load build context 0.0s => => transferring context: 72.08kB 0.0s => [internal] preparing inline document 0.1s => [internal] preparing inline document 0.0s => [scripts 1/17] COPY <<EOF /install_os_dependencies.sh 0.1s => [scripts 2/17] COPY <<EOF /install_mysql.sh 0.0s => [scripts 3/17] COPY <<EOF /install_mssql.sh 0.0s => [scripts 4/17] COPY <<EOF /install_postgres.sh 0.0s => [scripts 5/17] COPY <<EOF /install_packaging_tools.sh 0.0s => [scripts 6/17] COPY <<EOF /install_airflow_dependencies_from_branch_tip.sh 0.0s => [scripts 7/17] COPY <<EOF /common.sh 0.0s => [scripts 8/17] COPY <<EOF /pip 0.0s => [scripts 9/17] COPY <<EOF /install_from_docker_context_files.sh 0.0s => [scripts 10/17] COPY <<EOF /get_package_specs.py 0.0s => [scripts 11/17] COPY <<EOF /install_airflow.sh 0.0s => [scripts 12/17] COPY <<EOF /install_additional_dependencies.sh 0.0s => [scripts 13/17] COPY <<EOF /create_prod_venv.sh 0.0s => [scripts 14/17] COPY <<EOF /create_prod_venv.sh 0.0s => [scripts 15/17] COPY <<EOF /entrypoint_prod.sh 0.0s => [scripts 16/17] COPY <<EOF /clean-logs.sh 0.0s => [scripts 17/17] COPY <<EOF /airflow-scheduler-autorestart.sh 0.0s => [main 2/18] COPY --from=scripts install_os_dependencies.sh /scripts/docker/ 0.1s => [airflow-build-image 3/16] RUN bash /scripts/docker/install_os_dependencies.sh dev 43.5s => [main 3/18] RUN bash /scripts/docker/install_os_dependencies.sh runtime 21.6s => [main 4/18] COPY --from=scripts common.sh /scripts/docker/ 0.0s => [main 5/18] COPY --from=scripts install_mysql.sh install_mssql.sh install_postgres.sh /scripts/docker/ 0.0s => [main 6/18] RUN bash /scripts/docker/install_mysql.sh prod && bash /scripts/docker/install_mssql.sh prod && bash /scripts/docker 19.6s => [airflow-build-image 4/16] COPY --from=scripts common.sh /scripts/docker/ 0.0s => [airflow-build-image 5/16] COPY --from=scripts install_mysql.sh install_mssql.sh install_postgres.sh /scripts/docker/ 0.0s => [airflow-build-image 6/16] RUN bash /scripts/docker/install_mysql.sh dev && bash /scripts/docker/install_mssql.sh dev && bash /s 15.2s => [airflow-build-image 7/16] RUN adduser --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password --quiet "airflow" - 0.3s => [airflow-build-image 8/16] COPY --chown=50000:0 Dockerfile /docker-context-files 0.0s => [airflow-build-image 9/16] RUN if [[ -f /docker-context-files/pip.conf ]]; then mkdir -p /home/airflow/.config/pip; cp /d 0.3s => [airflow-build-image 10/16] COPY --from=scripts common.sh install_packaging_tools.sh install_airflow_dependencies_from_branch_tip.sh 0.1s => [airflow-build-image 11/16] RUN bash /scripts/docker/install_packaging_tools.sh; bash /scripts/docker/create_prod_venv.sh; if [[ f 9.2s => [airflow-build-image 12/16] COPY --chown=airflow:0 Dockerfile /Dockerfile 0.0s => [airflow-build-image 13/16] WORKDIR /opt/airflow 0.0s => [airflow-build-image 14/16] COPY --from=scripts install_from_docker_context_files.sh install_airflow.sh install_additional_dependenci 0.0s => ERROR [airflow-build-image 15/16] RUN --mount=type=cache,id=python:3.8-slim-bookworm-24.0-arm64-9,target=/tmp/.cache/pip,uid=50000 if 0.6s ------ > [airflow-build-image 15/16] RUN --mount=type=cache,id=python:3.8-slim-bookworm-24.0-arm64-9,target=/tmp/.cache/pip,uid=50000 if [[ false == "true" ]]; then bash /scripts/docker/install_from_docker_context_files.sh; fi; if ! airflow version 2>/dev/null >/dev/null; then bash /scripts/docker/install_airflow.sh; fi; if [[ -n "" ]]; then bash /scripts/docker/install_additional_dependencies.sh; fi; find "/home/airflow/.local/" -name '*.pyc' -print0 | xargs -0 rm -f || true ; find "/home/airflow/.local/" -type d -name '__pycache__' -print0 | xargs -0 rm -rf || true ; find "/home/airflow/.local" -executable ! -type l -print0 | xargs --null chmod g+x; find "/home/airflow/.local" ! -type l -print0 | xargs --null chmod g+rw: 0.097 0.097 Using 'pip' to install Airflow 0.097 0.117 0.117 Downloading constraints from https://raw.githubusercontent.com/apache/airflow/constraints-2.8.2/constraints-3.8.txt to /home/airflow/constraints.txt 0.117 0.242 PATH=/home/airflow/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/mssql-tools/bin 0.630 Installed pip: pip 24.0 from /home/airflow/.local/lib/python3.8/site-packages/pip (python 3.8): /home/airflow/.local/bin/pip 0.630 Using 'pip' to install Airflow 0.630 0.630 ERROR! You can only use --editable flag when installing airflow from sources! 0.630 Current installation method is 'apache-airflow and should be '.' ------ Dockerfile:1577 -------------------- 1576 | # hadolint ignore=SC2086, SC2010, DL3042 1577 | >>> RUN --mount=type=cache,id=$PYTHON_BASE_IMAGE-$AIRFLOW_PIP_VERSION-$TARGETARCH-$PIP_CACHE_EPOCH,target=/tmp/.cache/pip,uid=${AIRFLOW_UID} \ 1578 | >>> if [[ ${INSTALL_PACKAGES_FROM_CONTEXT} == "true" ]]; then \ 1579 | >>> bash /scripts/docker/install_from_docker_context_files.sh; \ 1580 | >>> fi; \ 1581 | >>> if ! airflow version 2>/dev/null >/dev/null; then \ 1582 | >>> bash /scripts/docker/install_airflow.sh; \ 1583 | >>> fi; \ 1584 | >>> if [[ -n "${ADDITIONAL_PYTHON_DEPS}" ]]; then \ 1585 | >>> bash /scripts/docker/install_additional_dependencies.sh; \ 1586 | >>> fi; \ 1587 | >>> find "${AIRFLOW_USER_HOME_DIR}/.local/" -name '*.pyc' -print0 | xargs -0 rm -f || true ; \ 1588 | >>> find "${AIRFLOW_USER_HOME_DIR}/.local/" -type d -name '__pycache__' -print0 | xargs -0 rm -rf || true ; \ 1589 | >>> # make sure that all directories and files in .local are also group accessible 1590 | >>> find "${AIRFLOW_USER_HOME_DIR}/.local" -executable ! -type l -print0 | xargs --null chmod g+x; \ 1591 | >>> find "${AIRFLOW_USER_HOME_DIR}/.local" ! -type l -print0 | xargs --null chmod g+rw 1592 | -------------------- ERROR: failed to solve: process "/bin/bash -o pipefail -o errexit -o nounset -o nolog -c if [[ ${INSTALL_PACKAGES_FROM_CONTEXT} == \"true\" ]]; then bash /scripts/docker/install_from_docker_context_files.sh; fi; if ! airflow version 2>/dev/null >/dev/null; then bash /scripts/docker/install_airflow.sh; fi; if [[ -n \"${ADDITIONAL_PYTHON_DEPS}\" ]]; then bash /scripts/docker/install_additional_dependencies.sh; fi; find \"${AIRFLOW_USER_HOME_DIR}/.local/\" -name '*.pyc' -print0 | xargs -0 rm -f || true ; find \"${AIRFLOW_USER_HOME_DIR}/.local/\" -type d -name '__pycache__' -print0 | xargs -0 rm -rf || true ; find \"${AIRFLOW_USER_HOME_DIR}/.local\" -executable ! -type l -print0 | xargs --null chmod g+x; find \"${AIRFLOW_USER_HOME_DIR}/.local\" ! -type l -print0 | xargs --null chmod g+rw" did not complete successfully: exit code: 1 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
