From 1fdf0a1f3f01ce01c4ce685c52f9298c73cca83c Mon Sep 17 00:00:00 2001 From: Raphael Jacobs Date: Sun, 2 Feb 2025 19:22:10 +0100 Subject: [PATCH] add rust setup --- .config/fish/config.fish | 2 ++ Dockerfile | 6 ++++++ setup_langs/rust.sh | 7 +++++++ 3 files changed, 15 insertions(+) create mode 100644 .config/fish/config.fish create mode 100644 setup_langs/rust.sh diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..a0bd4a9 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,2 @@ + +fish_add_path /root/.cargo/bin/ diff --git a/Dockerfile b/Dockerfile index afc13e5..fa9d465 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,13 @@ RUN apk add --no-cache \ lazygit \ most \ k9s \ + bash \ + curl \ + cargo \ git +RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash +RUN cargo binstall --strategies crate-meta-data jj-cli + # Set the entrypoint to fish ENTRYPOINT ["fish"] diff --git a/setup_langs/rust.sh b/setup_langs/rust.sh new file mode 100644 index 0000000..93b16c9 --- /dev/null +++ b/setup_langs/rust.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +apk add --no-cache \ + rust \ + cargo \ + rust-analyzer \ + clippy