Skip to content

Commit 19ff83d

Browse files
authored
Merge pull request #230 from riscv-software-src/devcontainer
Add devcontainer
2 parents 0268fae + 686ad24 commit 19ff83d

File tree

5 files changed

+59
-13
lines changed

5 files changed

+59
-13
lines changed

.devcontainer/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ubuntu:24.04 AS spython-base
2+
RUN export DEBIAN_FRONTEND=noninteractive
3+
RUN apt-get update
4+
RUN apt-get install -y --no-install-recommends git
5+
RUN apt-get install -y --no-install-recommends python3
6+
RUN apt-get install -y --no-install-recommends python3.12-venv python3-pip
7+
RUN apt-get install -y --no-install-recommends build-essential
8+
RUN apt-get install -y --no-install-recommends ruby ruby-dev
9+
RUN apt-get install -y --no-install-recommends bundler
10+
RUN apt-get install -y --no-install-recommends nodejs
11+
RUN apt-get install -y --no-install-recommends npm
12+
RUN apt-get install -y --no-install-recommends ditaa
13+
RUN apt-get clean autoclean
14+
RUN apt-get autoremove -y
15+
RUN rm -rf /var/lib/{apt, dpkg, cache, log}

.devcontainer/devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "RISC-V UnifiedDB Dev",
3+
"build": { "dockerfile": "Dockerfile" },
4+
"updateContentCommand": "${containerWorkspaceFolder}/.devcontainer/updateContentCommand.sh",
5+
"onCreateCommand": "${containerWorkspaceFolder}/.devcontainer/onCreateCommand.sh",
6+
"remoteEnv": {
7+
"DISPLAY": ":0"
8+
},
9+
// vscode extensions
10+
"customizations": {
11+
"vscode": {
12+
"settings": {
13+
"solargraph.bundlerPath": "bundle",
14+
"solargraph.useBundler": true,
15+
"files.exclude": {
16+
"**/.home": true,
17+
"**/.yardoc": true
18+
},
19+
"files.watcherExclude": {
20+
"**/.home": true
21+
},
22+
"asciidoc.antora.showEnableAntoraPrompt": true
23+
},
24+
"extensions": [
25+
"castwide.solargraph",
26+
"redhat.vscode-yaml",
27+
"asciidoctor.asciidoctor-vscode",
28+
"zhwu95.riscv",
29+
"tomoki1207.pdf",
30+
"CraigMaslowski.erb"
31+
]
32+
}
33+
},
34+
"forwardPorts": [
35+
8000, 8080
36+
]
37+
}

.devcontainer/onCreateCommand.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
npm i
4+
bundle install
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
bundle

.vscode/settings.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)