Skip to content

Commit 2a2663a

Browse files
authored
Merge pull request #39 from byeongkeunahn/main
Support GitHub Codespaces
2 parents 9fc74df + e6bd271 commit 2a2663a

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ubuntu:latest
2+
3+
WORKDIR /home/
4+
5+
COPY . .
6+
7+
RUN bash ./setup.sh

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "basm-rs",
3+
"extensions": [
4+
"ms-vsliveshare.vsliveshare",
5+
"rust-lang.rust-analyzer",
6+
"vadimcn.vscode-lldb"
7+
],
8+
"dockerFile": "Dockerfile",
9+
"settings": {
10+
"editor.formatOnSave": true
11+
},
12+
"customizations": {
13+
"codespaces": {
14+
"openFiles": [
15+
"src/solution.rs"
16+
]
17+
}
18+
}
19+
}

.devcontainer/setup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
apt-get -y update
3+
apt-get -y install curl git gnupg2 jq sudo vim build-essential openssl python3
4+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly --default-host x86_64-unknown-linux-gnu -y
5+
sudo ln -s /home/codespace/.cargo/bin/cargo /bin/cargo

0 commit comments

Comments
 (0)