Skip to content

Commit

Permalink
Merge pull request #689 from jonasbb/devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb authored Jan 27, 2024
2 parents 31e5b6c + d2b859a commit 00382b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ FROM mcr.microsoft.com/devcontainers/rust:1
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends lld python3-pip \
&& rustup update \
&& rustup toolchain install nightly --profile minimal --component clippy,rustfmt \
&& pip3 install --no-cache-dir pre-commit
&& rustup toolchain install nightly --profile minimal --component clippy,rustfmt
COPY config /root/.cargo/config
RUN cargo install --locked bacon cargo-readme \
&& rm -rf ~/.cargo/registry
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pre-commit install --install-hooks",
"postCreateCommand": "pip install --user --upgrade pre-commit && pre-commit install --install-hooks",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "root",
Expand Down

0 comments on commit 00382b9

Please sign in to comment.