From 133cdd4bf5ebffcef006f24f0f331ba400f2a635 Mon Sep 17 00:00:00 2001 From: Jonas Vautherin <dev@jonas.vautherin.ch> Date: Sat, 15 Feb 2025 22:21:25 +0100 Subject: [PATCH] Install rustup in common.docker --- common/common.docker | 2 ++ imagefiles/build-and-install-rustup.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100755 imagefiles/build-and-install-rustup.sh diff --git a/common/common.docker b/common/common.docker index 71523fc..c5d3367 100644 --- a/common/common.docker +++ b/common/common.docker @@ -25,6 +25,7 @@ COPY \ imagefiles/build-and-install-ninja.sh \ imagefiles/build-and-install-openssl.sh \ imagefiles/build-and-install-openssh.sh \ + imagefiles/build-and-install-rustup.sh \ imagefiles/install-cmake-binary.sh \ imagefiles/install-liquidprompt-binary.sh \ imagefiles/install-python-packages.sh \ @@ -38,6 +39,7 @@ RUN \ /buildscripts/build-and-install-curl.sh && \ /buildscripts/build-and-install-git.sh && \ /buildscripts/build-and-install-cmake.sh $X86_FLAG && \ + /buildscripts/build-and-install-rustup.sh && \ /buildscripts/install-liquidprompt-binary.sh && \ PYTHON=$([ -e /opt/python/cp38-cp38/bin/python ] && echo "/opt/python/cp38-cp38/bin/python" || echo "python3") && \ /buildscripts/install-python-packages.sh -python ${PYTHON} && \ diff --git a/imagefiles/build-and-install-rustup.sh b/imagefiles/build-and-install-rustup.sh new file mode 100755 index 0000000..0d8da36 --- /dev/null +++ b/imagefiles/build-and-install-rustup.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -ex + +if ! command -v curl &> /dev/null; then + echo >&2 'error: "curl" not found!' + exit 1 +fi + +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y