Improve devcontainer UX

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-29 12:33:07 +02:00
parent 2ba5ed07ce
commit 33e7fc8b17
3 changed files with 28 additions and 24 deletions

View File

@@ -1 +0,0 @@
FROM ghcr.io/truecharts/devcontainer:v2.0.0

View File

@@ -2,14 +2,7 @@
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/ruby
{
"name": "Ruby",
"build": {
"context": "..",
"dockerfile": "Dockerfile",
"args": {
// Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5
"VARIANT": "2.7",
}
},
"image": "ghcr.io/truecharts/devcontainer:v2.0.1"
// Set *default* container specific settings.json values on container create.
"settings": {
@@ -19,7 +12,19 @@
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-kubernetes-tools.vscode-kubernetes-tools",
"rebornix.Ruby"
"rebornix.Ruby",
"github.vscode-pull-request-github",
"eamodio.gitlens",
"yzhang.markdown-all-in-one",
"davidanson.vscode-markdownlint",
"esbenp.prettier-vscode",
"2gua.rainbow-brackets",
"bmuskalla.vscode-tldr",
"visualstudioexptteam.vscodeintellicode",
"wingrunr21.vscode-ruby",
"redhat.vscode-yaml",
"spmeesseman.vscode-taskexplorer",
"formulahendry.code-runner"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.

28
.vscode/launch.json vendored
View File

@@ -5,20 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "UnitTest - active spec file only",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "/usr/local/bin/bundle",
"args": [
"exec",
"m",
"-r",
"${relativeFile}"
]
},
{
"name": "UnitTest - all spec files",
"name": "Common UnitTest - all tests",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
@@ -29,6 +16,19 @@
"-r",
"${workspaceFolder}/tests"
]
},
{
"name": "Common UnitTest - active spec file only",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "/usr/local/bin/bundle",
"args": [
"exec",
"m",
"-r",
"${relativeFile}"
]
}
]
}