Skip to content

Commit

Permalink
setup node/rust/cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
charliesbot committed Mar 25, 2024
1 parent 9143cd7 commit e42b4f5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "LeetCode",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"postCreateCommand": "sh .devcontainer/post_create_command.sh",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/rust:1": {
"version": "latest"
}
},
// "forwardPorts": [],
"remoteUser": "root"
}
7 changes: 7 additions & 0 deletions .devcontainer/post_create_command.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Update package lists
sudo apt update

# Install C++ development tools
apt install -y build-essential

0 comments on commit e42b4f5

Please sign in to comment.