Skip to content

Commit 93b4341

Browse files
authored
Simplify Dev Container configuration (#40)
Note that this change currently uses Ruby 3.3. This project will be updating to Ruby 3.3 for development in a subsequent PR.
1 parent caf1301 commit 93b4341

File tree

3 files changed

+47
-35
lines changed

3 files changed

+47
-35
lines changed

.devcontainer/Dockerfile

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

.devcontainer/devcontainer.json

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,49 @@
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
{
2-
"name": "webmention-client-ruby",
3-
"features": {},
4-
"customizations": {},
5-
"workspaceFolder": "/workspace",
6-
"dockerComposeFile": "docker-compose.yml",
7-
"service": "default",
8-
"postCreateCommand": "bundle install"
4+
"name": "indieweb-endpoints-ruby",
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:formatter": "none",
28+
"rubyLsp.rubyVersionManager": "none"
29+
},
30+
"extensions": [
31+
"EditorConfig.EditorConfig",
32+
"Shopify.ruby-lsp"
33+
]
34+
}
35+
},
36+
37+
// Set or override environment variables for the container.
38+
"containerEnv": {
39+
"EDITOR": "nano",
40+
"LESS": "-FMR",
41+
"PAGER": "less",
42+
"RUBY_DEBUG_HISTORY_FILE": "${containerWorkspaceFolder}/.rdbg_history",
43+
"RUBY_DEBUG_SAVE_HISTORY": "1000",
44+
"VISUAL": "code --wait"
45+
}
46+
47+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
48+
// "remoteUser": "root"
949
}

.devcontainer/docker-compose.yml

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

0 commit comments

Comments
 (0)