Improve devcontainer UX
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
FROM ghcr.io/truecharts/devcontainer:v2.0.0
|
|
||||||
@@ -2,14 +2,7 @@
|
|||||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/ruby
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/ruby
|
||||||
{
|
{
|
||||||
"name": "Ruby",
|
"name": "Ruby",
|
||||||
"build": {
|
"image": "ghcr.io/truecharts/devcontainer:v2.0.1"
|
||||||
"context": "..",
|
|
||||||
"dockerfile": "Dockerfile",
|
|
||||||
"args": {
|
|
||||||
// Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5
|
|
||||||
"VARIANT": "2.7",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// Set *default* container specific settings.json values on container create.
|
// Set *default* container specific settings.json values on container create.
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -19,7 +12,19 @@
|
|||||||
// Add the IDs of extensions you want installed when the container is created.
|
// Add the IDs of extensions you want installed when the container is created.
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"ms-kubernetes-tools.vscode-kubernetes-tools",
|
"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.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
|||||||
Vendored
+14
-14
@@ -5,20 +5,7 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "UnitTest - active spec file only",
|
"name": "Common UnitTest - all tests",
|
||||||
"type": "Ruby",
|
|
||||||
"request": "launch",
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"program": "/usr/local/bin/bundle",
|
|
||||||
"args": [
|
|
||||||
"exec",
|
|
||||||
"m",
|
|
||||||
"-r",
|
|
||||||
"${relativeFile}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "UnitTest - all spec files",
|
|
||||||
"type": "Ruby",
|
"type": "Ruby",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
@@ -29,6 +16,19 @@
|
|||||||
"-r",
|
"-r",
|
||||||
"${workspaceFolder}/tests"
|
"${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}"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user