Compare commits

..

No commits in common. "3ad272c57f4d28a500c7513933ded4bfe2111b6f" and "e8eb029e52c7a1ccf7373916cdc2417f53b45aff" have entirely different histories.

7 changed files with 13 additions and 56 deletions

View file

@ -13,19 +13,15 @@ RUN apt install -y wget build-essential libssl-dev pkg-config
RUN wget https://sh.rustup.rs -O rust.sh
RUN chmod +x rust.sh
# Downloading Rust-Analyzer
RUN wget https://github.com/rust-lang/rust-analyzer/releases/download/2025-01-13/rust-analyzer-x86_64-unknown-linux-gnu.gz -O rust-analyzer.gz
RUN gunzip -c rust-analyzer.gz > /usr/local/bin/rust-analyzer
# Installing rust-analyzer
RUN chmod +x /usr/local/bin/rust-analyzer
# Switching to a User
RUN useradd -m rustacean
USER rustacean
# Installing Rust
RUN ./rust.sh -y
# Downloading Rust-Analyzer
RUN wget https://github.com/rust-lang/rust-analyzer/releases/download/2025-01-13/rust-analyzer-x86_64-unknown-linux-gnu.gz -O rust-analyzer.gz
RUN gunzip -c rust-analyzer.gz > /bin/rust-analyzer
# Installing rust-analyzer
RUN chmod +x /bin/rust-analyzer
## RUNTIME ##
ENTRYPOINT ["/usr/local/bin/rust-analyzer"]
ENTRYPOINT ["/bin/rust-analyzer"]

View file

@ -1,24 +0,0 @@
## BACKEND ##
# Parent Image
FROM debian
# Creating directories
WORKDIR /tmp
# Installing Deps
RUN apt update -y
RUN apt install -y wget build-essential libssl-dev pkg-config
# Downloading Rust Install Script
RUN wget https://sh.rustup.rs -O rust.sh
RUN chmod +x rust.sh
# Switching to a User
RUN useradd -m rustacean
USER rustacean
# Installing Rust
RUN ./rust.sh -y
## RUNTIME ##
ENTRYPOINT ["/home/rustacean/.cargo/bin/cargo"]

5
rust-ls Executable file
View file

@ -0,0 +1,5 @@
docker run --rm -it \
-u $(stat -c '%u:%g' .) \
-v "$PWD:$PWD:ro,z" \
-w "$PWD" \
rust-ls "$@"

View file

@ -1,6 +0,0 @@
docker run --rm -i \
--name cargo \
--user rustacean \
-v "$PWD:$PWD:Z" \
-w "$PWD" \
rust-ls:cargo "$@"

View file

@ -1,4 +0,0 @@
clear
docker build . \
-t rust-ls:cargo \
-f docker/cargo/Dockerfile

View file

@ -1,4 +0,0 @@
clear
docker build . \
-t rust-ls:analyzer \
-f docker/rust-analyzer/Dockerfile

View file

@ -1,6 +0,0 @@
docker run --rm -i \
--name rust-analyzer \
--user rustacean \
-v "$PWD:$PWD:Z" \
-w "$PWD" \
rust-ls:analyzer "$@"