Skip to content

Commit fe13cbb

Browse files
janekbaraniewskipascalbreuninger
authored andcommitted
Remove Rust setup from devcontainer Dockerfile
Rust is required for developing desktop app which can't be dev eloped in container anyway
1 parent 9fc43cd commit fe13cbb

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,6 @@ RUN apt-get update \
1212
&& apt-get clean \
1313
&& rm -rf /var/lib/apt/lists/*
1414

15-
# Set environment variables for Rust
16-
ENV RUSTUP_HOME=/usr/local/rustup \
17-
CARGO_HOME=/usr/local/cargo \
18-
PATH=/usr/local/cargo/bin:$PATH \
19-
RUST_VERSION=1.69.0
20-
21-
# Install Rust
22-
RUN set -eux; \
23-
dpkgArch="$(dpkg --print-architecture)" || exit 1; \
24-
if [ "${dpkgArch}" = "amd64" ]; then \
25-
rustArch="x86_64-unknown-linux-gnu"; rustupSha256="0b2f6c8f85a3d02fde2efc0ced4657869d73fccfce59defb4e8d29233116e6db"; \
26-
elif [ "${dpkgArch}" = "armhf" ]; then \
27-
rustArch="armv7-unknown-linux-gnueabihf"; rustupSha256="f21c44b01678c645d8fbba1e55e4180a01ac5af2d38bcbd14aa665e0d96ed69a"; \
28-
elif [ "${dpkgArch}" = "arm64" ]; then \
29-
rustArch="aarch64-unknown-linux-gnu"; rustupSha256="673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800"; \
30-
elif [ "${dpkgArch}" = "i386" ]; then \
31-
rustArch="i686-unknown-linux-gnu"; rustupSha256="e7b0f47557c1afcd86939b118cbcf7fb95a5d1d917bdd355157b63ca00fc4333"; \
32-
else \
33-
echo "unsupported architecture: ${dpkgArch}" >&2; exit 1; \
34-
fi; \
35-
wget "https://static.rust-lang.org/rustup/archive/1.26.0/${rustArch}/rustup-init" -O /tmp/rustup-init; \
36-
echo "${rustupSha256} */tmp/rustup-init" | sha256sum -c -; \
37-
chmod +x /tmp/rustup-init; \
38-
/tmp/rustup-init -y --no-modify-path --profile minimal --default-toolchain "$RUST_VERSION" --default-host "$rustArch"; \
39-
rm /tmp/rustup-init; \
40-
chmod -R a+w "$RUSTUP_HOME" "$CARGO_HOME"; \
41-
rustup --version; \
42-
cargo --version; \
43-
rustc --version
44-
4515
# Install Protobuf compiler
4616
RUN apt-get update \
4717
&& apt-get install -y --no-install-recommends protobuf-compiler \

0 commit comments

Comments
 (0)