Skip to content

Commit f2953c1

Browse files
committed
Refactor Dev Container setup
1 parent 0c295c2 commit f2953c1

File tree

3 files changed

+45
-34
lines changed

3 files changed

+45
-34
lines changed

.devcontainer/Dockerfile

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

.devcontainer/devcontainer.json

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,48 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
13
{
24
"name": "indieweb-endpoints-ruby",
3-
"features": {},
4-
"customizations": {},
5-
"workspaceFolder": "/workspace",
6-
"dockerComposeFile": "docker-compose.yml",
7-
"service": "default",
8-
"postCreateCommand": "bundle install"
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/ruby:1-3.3-bookworm",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
"features": {
10+
"ghcr.io/devcontainers-contrib/features/apt-packages:1": {
11+
"packages": "less,nano"
12+
}
13+
},
14+
15+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
16+
// "forwardPorts": [],
17+
18+
// Use 'postCreateCommand' to run commands after the container is created.
19+
"postCreateCommand": "bundle install",
20+
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
// Configure properties specific to VS Code.
24+
"vscode": {
25+
// Set *default* container specific settings.json values on container create.
26+
"settings": {
27+
"rubyLsp.rubyVersionManager": "none"
28+
},
29+
"extensions": [
30+
"EditorConfig.EditorConfig",
31+
"Shopify.ruby-lsp"
32+
]
33+
}
34+
},
35+
36+
// Set or override environment variables for the container.
37+
"containerEnv": {
38+
"EDITOR": "nano",
39+
"LESS": "-FMR",
40+
"PAGER": "less",
41+
"RUBY_DEBUG_HISTORY_FILE": "${containerWorkspaceFolder}/.rdbg_history",
42+
"RUBY_DEBUG_SAVE_HISTORY": "1000",
43+
"VISUAL": "code --wait"
44+
}
45+
46+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
47+
// "remoteUser": "root"
948
}

.devcontainer/docker-compose.yml

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

0 commit comments

Comments
 (0)