Skip to content

Commit 33e7fc8

Browse files
author
kjeld Schouten-Lebbing
committed
Improve devcontainer UX
1 parent 2ba5ed0 commit 33e7fc8

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.devcontainer/Dockerfile

-1
This file was deleted.

.devcontainer/devcontainer.json

+14-9
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/ruby
33
{
44
"name": "Ruby",
5-
"build": {
6-
"context": "..",
7-
"dockerfile": "Dockerfile",
8-
"args": {
9-
// Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5
10-
"VARIANT": "2.7",
11-
}
12-
},
5+
"image": "ghcr.io/truecharts/devcontainer:v2.0.1"
136

147
// Set *default* container specific settings.json values on container create.
158
"settings": {
@@ -19,7 +12,19 @@
1912
// Add the IDs of extensions you want installed when the container is created.
2013
"extensions": [
2114
"ms-kubernetes-tools.vscode-kubernetes-tools",
22-
"rebornix.Ruby"
15+
"rebornix.Ruby",
16+
"github.vscode-pull-request-github",
17+
"eamodio.gitlens",
18+
"yzhang.markdown-all-in-one",
19+
"davidanson.vscode-markdownlint",
20+
"esbenp.prettier-vscode",
21+
"2gua.rainbow-brackets",
22+
"bmuskalla.vscode-tldr",
23+
"visualstudioexptteam.vscodeintellicode",
24+
"wingrunr21.vscode-ruby",
25+
"redhat.vscode-yaml",
26+
"spmeesseman.vscode-taskexplorer",
27+
"formulahendry.code-runner"
2328
],
2429

2530
// Use 'forwardPorts' to make a list of ports inside the container available locally.

.vscode/launch.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "UnitTest - active spec file only",
8+
"name": "Common UnitTest - all tests",
99
"type": "Ruby",
1010
"request": "launch",
1111
"cwd": "${workspaceRoot}",
@@ -14,11 +14,11 @@
1414
"exec",
1515
"m",
1616
"-r",
17-
"${relativeFile}"
17+
"${workspaceFolder}/tests"
1818
]
1919
},
2020
{
21-
"name": "UnitTest - all spec files",
21+
"name": "Common UnitTest - active spec file only",
2222
"type": "Ruby",
2323
"request": "launch",
2424
"cwd": "${workspaceRoot}",
@@ -27,7 +27,7 @@
2727
"exec",
2828
"m",
2929
"-r",
30-
"${workspaceFolder}/tests"
30+
"${relativeFile}"
3131
]
3232
}
3333
]

0 commit comments

Comments
 (0)