|
62 | 62 | AIRFLOW_PYTHON_VERSION=${AIRFLOW_PYTHON_VERSION:-3.10.18} |
63 | 63 | PYTHON_LTO=${PYTHON_LTO:-true} |
64 | 64 | GOLANG_MAJOR_MINOR_VERSION=${GOLANG_MAJOR_MINOR_VERSION:-1.24.4} |
| 65 | +RUSTUP_DEFAULT_TOOLCHAIN=${RUSTUP_DEFAULT_TOOLCHAIN:-stable} |
65 | 66 | COSIGN_VERSION=${COSIGN_VERSION:-3.0.5} |
66 | 67 |
|
67 | 68 | if [[ "${1}" == "runtime" ]]; then |
@@ -433,6 +434,11 @@ function install_golang() { |
433 | 434 | rm -rf /usr/local/go && tar -C /usr/local -xzf go"${GOLANG_MAJOR_MINOR_VERSION}".linux.tar.gz |
434 | 435 | } |
435 | 436 |
|
| 437 | +function install_rustup() { |
| 438 | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ |
| 439 | + sh -s -- -y --default-toolchain "${RUSTUP_DEFAULT_TOOLCHAIN}" |
| 440 | +} |
| 441 | + |
436 | 442 | function apt_clean() { |
437 | 443 | apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false |
438 | 444 | rm -rf /var/lib/apt/lists/* /var/log/* |
|
448 | 454 | install_debian_dev_dependencies |
449 | 455 | install_python |
450 | 456 | install_additional_dev_dependencies |
| 457 | + install_rustup |
451 | 458 | if [[ "${INSTALLATION_TYPE}" == "CI" ]]; then |
452 | 459 | install_golang |
453 | 460 | fi |
@@ -1646,6 +1653,9 @@ ENV DEV_APT_COMMAND=${DEV_APT_COMMAND} \ |
1646 | 1653 | ARG AIRFLOW_PYTHON_VERSION="3.12.13" |
1647 | 1654 | ENV AIRFLOW_PYTHON_VERSION=${AIRFLOW_PYTHON_VERSION} |
1648 | 1655 | ENV GOLANG_MAJOR_MINOR_VERSION="1.26.1" |
| 1656 | +ENV RUSTUP_HOME="/usr/local/rustup" |
| 1657 | +ENV CARGO_HOME="/usr/local/cargo" |
| 1658 | +ENV PATH="${CARGO_HOME}/bin:${PATH}" |
1649 | 1659 |
|
1650 | 1660 | ARG PYTHON_LTO |
1651 | 1661 |
|
@@ -1805,7 +1815,7 @@ ENV AIRFLOW_PIP_VERSION=${AIRFLOW_PIP_VERSION} \ |
1805 | 1815 | AIRFLOW_PREK_VERSION=${AIRFLOW_PREK_VERSION} |
1806 | 1816 |
|
1807 | 1817 | # The PATH is needed for python to find installed and cargo to build the wheels |
1808 | | -ENV PATH="/usr/python/bin:/root/.local/bin:/root/.cargo/bin:${PATH}" |
| 1818 | +ENV PATH="/usr/python/bin:/root/.local/bin:${PATH}" |
1809 | 1819 | # Useful for creating a cache id based on the underlying architecture, preventing the use of cached python packages from |
1810 | 1820 | # an incorrect architecture. |
1811 | 1821 | ARG TARGETARCH |
|
0 commit comments