Skip to content

Commit

Permalink
Update devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Jan 17, 2024
1 parent 1cc6168 commit 73fb95f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"onCreateCommand": "${containerWorkspaceFolder}/ENV_SETUP.bash"
}
"postCreateCommand": "${containerWorkspaceFolder}/scripts/env_setup.bash"
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
target/
tmp/
!tmp/.gitkeep
Cargo.lock
Cargo.lock
scripts/rustup.sh
4 changes: 3 additions & 1 deletion ENV_SETUP.bash → scripts/env_setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ if [[ $CUR_SYSTEM =~ $UBUNTU_FLAG ]];then
sudo apt install -y libseccomp-dev gcc
fi

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs >> scripts/rustup.sh
chmod +x scripts/rustup.sh
./scripts/rustup.sh -y

0 comments on commit 73fb95f

Please sign in to comment.