build: adding to Cargo make config
Adding default tasks and setup task to run when container is made
This commit is contained in:
@@ -23,7 +23,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
||||
PATH=/usr/local/cargo/bin:$PATH:/home/vscode/.cargo/bin
|
||||
|
||||
RUN apt-get update && \
|
||||
apt install -y git libtool valgrind docker-compose lldb sudo zsh wget && \
|
||||
apt install -y cmake git libtool valgrind docker-compose lldb sudo zsh wget && \
|
||||
apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* && \
|
||||
adduser ${USERNAME} && \
|
||||
echo "$USERNAME ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
||||
@@ -35,8 +35,9 @@ RUN apt-get update && \
|
||||
--default-toolchain nightly --default-host x86_64-unknown-linux-gnu \
|
||||
--component rustfmt --component rust-src --component clippy && \
|
||||
rm rustup-init && \
|
||||
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
|
||||
chmod -R a+w $RUSTUP_HOME $CARGO_HOME && \
|
||||
echo "alias make='cargo make'" >> /etc/profile
|
||||
|
||||
USER vscode
|
||||
|
||||
RUN cargo install cargo-make
|
||||
RUN cargo install cargo-make convco
|
||||
@@ -28,7 +28,7 @@
|
||||
"--security-opt",
|
||||
"seccomp=unconfined"
|
||||
],
|
||||
"postStartCommand": "git submodule update --init && docker pull rust:1-alpine",
|
||||
"postStartCommand": "cargo make setup",
|
||||
"remoteUser": "vscode",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/docker-in-docker": {}
|
||||
|
||||
Reference in New Issue
Block a user