From 4c6cd2174d91c542ff38d0b9d67463c693d3f255 Mon Sep 17 00:00:00 2001 From: cbluebird Date: Mon, 9 Sep 2024 16:32:16 +0800 Subject: [PATCH] chore: Update Rust Dockerfile to install in sealos --- Language/rust/rust1.8.0/Dockerfile | 9 -------- Language/rust/rust1.81.0/Dockerfile | 13 ++++++++++++ .../rust/rust1.8.0/runtime-rust1.8.0.yaml | 21 ------------------- 3 files changed, 13 insertions(+), 30 deletions(-) delete mode 100644 Language/rust/rust1.8.0/Dockerfile create mode 100644 Language/rust/rust1.81.0/Dockerfile delete mode 100644 yaml/Language/rust/rust1.8.0/runtime-rust1.8.0.yaml diff --git a/Language/rust/rust1.8.0/Dockerfile b/Language/rust/rust1.8.0/Dockerfile deleted file mode 100644 index ffbc4e9..0000000 --- a/Language/rust/rust1.8.0/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335 - -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ - apt-get update && \ - apt-get install -y build-essential && \ - apt-get clean && \ - echo 'export PATH=/root/.cargo/bin:$PATH' >> /home/sealos/.bashrc && \ - echo 'source /root/.cargo/env' >> /home/sealos/.bashrc && \ - rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/Language/rust/rust1.81.0/Dockerfile b/Language/rust/rust1.81.0/Dockerfile new file mode 100644 index 0000000..2db0ba4 --- /dev/null +++ b/Language/rust/rust1.81.0/Dockerfile @@ -0,0 +1,13 @@ +FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335 + +USER sealos +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + +USER root + +RUN apt-get update && \ + apt-get install -y build-essential && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* && \ + echo 'export PATH=/home/sealos/.cargo/bin:$PATH' >> $HOME/.bashrc && \ + echo 'source /home/sealos/.cargo/env' >> $HOME/.bashrc \ No newline at end of file diff --git a/yaml/Language/rust/rust1.8.0/runtime-rust1.8.0.yaml b/yaml/Language/rust/rust1.8.0/runtime-rust1.8.0.yaml deleted file mode 100644 index a2e624e..0000000 --- a/yaml/Language/rust/rust1.8.0/runtime-rust1.8.0.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: rust1-8-0 -spec: - title: rust1.8.0 - classRef: rust - description: "rust1.8.0" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/rust1.8.0:f80ca8 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: rust -spec: - title: rust - kind: Language - description: "rust"