Skip to content

Commit 9288757

Browse files
authored
Merge pull request #1428 from dtolnay/devcontainer
Update devcontainer image
2 parents 9898f30 + b0be94b commit 9288757

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

Diff for: .devcontainer/build.Dockerfile

+11-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
FROM mcr.microsoft.com/vscode/devcontainers/rust:1
1+
FROM mcr.microsoft.com/devcontainers/rust:bookworm
22

33
RUN apt-get update \
44
&& export DEBIAN_FRONTEND=noninteractive \
5-
&& apt-get -y install --no-install-recommends openjdk-11-jdk lld \
6-
&& rustup default nightly 2>&1 \
7-
&& rustup component add rust-analyzer-preview rustfmt clippy 2>&1 \
8-
&& wget -q -O bin/install-bazel https://github.com/bazelbuild/bazel/releases/download/4.0.0/bazel-4.0.0-installer-linux-x86_64.sh \
9-
&& wget -q -O bin/buck https://jitpack.io/com/github/facebook/buck/a5f0342ae3/buck-a5f0342ae3-java11.pex \
10-
&& wget -q -O bin/buildifier https://github.com/bazelbuild/buildtools/releases/latest/download/buildifier \
11-
&& wget -q -O tmp/watchman.zip https://github.com/facebook/watchman/releases/download/v2020.09.21.00/watchman-v2020.09.21.00-linux.zip \
12-
&& chmod +x bin/install-bazel bin/buck bin/buildifier \
13-
&& bin/install-bazel \
14-
&& unzip tmp/watchman.zip -d tmp \
15-
&& mv tmp/watchman-v2020.09.21.00-linux/bin/watchman bin \
16-
&& mv tmp/watchman-v2020.09.21.00-linux/lib/* /usr/local/lib \
17-
&& mkdir -p /usr/local/var/run/watchman \
18-
&& rm tmp/watchman.zip
5+
&& apt-get -y install --no-install-recommends clang lld zstd \
6+
&& apt-get clean \
7+
&& rm -rf /var/lib/apt/lists/* \
8+
&& wget -q -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 \
9+
&& wget -q -O /tmp/buck.zst https://github.com/facebook/buck2/releases/download/latest/buck2-x86_64-unknown-linux-gnu.zst \
10+
&& wget -q -O /usr/local/bin/buildifier https://github.com/bazelbuild/buildtools/releases/latest/download/buildifier-linux-amd64 \
11+
&& unzstd /tmp/buck.zst -o /usr/local/bin/buck \
12+
&& chmod +x /usr/local/bin/bazel /usr/local/bin/buck /usr/local/bin/buildifier \
13+
&& rm /tmp/buck.zst \
14+
&& rustup component add rust-analyzer rust-src

Diff for: .devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
},
1414
"extensions": [
1515
"BazelBuild.vscode-bazel",
16-
"matklad.rust-analyzer",
1716
"ms-vscode.cpptools",
17+
"rust-lang.rust-analyzer",
1818
"vadimcn.vscode-lldb"
1919
]
2020
}

0 commit comments

Comments
 (0)