|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/ruby |
3 | 3 | { |
4 | | - "name": "indieweb-endpoints-ruby", |
| 4 | + "name": "webmention-client-ruby", |
5 | 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", |
| 6 | + "image": "mcr.microsoft.com/devcontainers/base:1-bookworm", |
7 | 7 |
|
8 | 8 | // Features to add to the dev container. More info: https://containers.dev/features. |
9 | 9 | "features": { |
10 | | - "ghcr.io/devcontainers-contrib/features/apt-packages:1": { |
11 | | - "packages": "less,nano" |
| 10 | + "ghcr.io/rails/devcontainer/features/ruby:1": { |
| 11 | + "version": "3.4.3" |
12 | 12 | } |
13 | 13 | }, |
14 | 14 |
|
15 | 15 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
16 | 16 | // "forwardPorts": [], |
17 | 17 |
|
| 18 | + // An array of Docker CLI arguments that should be used when running the container. |
| 19 | + "runArgs": ["--name", "webmention-client-ruby"], |
| 20 | + |
18 | 21 | // Use 'postCreateCommand' to run commands after the container is created. |
19 | | - "postCreateCommand": "bundle install", |
| 22 | + "postCreateCommand": ".devcontainer/setup.sh", |
20 | 23 |
|
21 | 24 | // Configure tool-specific properties. |
22 | 25 | "customizations": { |
23 | | - // Configure properties specific to VS Code. |
24 | 26 | "vscode": { |
25 | | - // Set *default* container specific settings.json values on container create. |
26 | | - "settings": { |
27 | | - "rubyLsp:formatter": "none", |
28 | | - "rubyLsp.rubyVersionManager": "none" |
29 | | - }, |
30 | 27 | "extensions": [ |
31 | | - "EditorConfig.EditorConfig", |
32 | | - "jasonnutter.vscode-codeowners", |
33 | | - "Shopify.ruby-lsp" |
| 28 | + "EditorConfig.EditorConfig" |
34 | 29 | ] |
35 | 30 | } |
36 | | - }, |
37 | | - |
38 | | - // Set or override environment variables for the container. |
39 | | - "containerEnv": { |
40 | | - "EDITOR": "nano", |
41 | | - "LESS": "-FMR", |
42 | | - "PAGER": "less", |
43 | | - "RUBY_DEBUG_HISTORY_FILE": "${containerWorkspaceFolder}/.rdbg_history", |
44 | | - "RUBY_DEBUG_SAVE_HISTORY": "1000", |
45 | | - "VISUAL": "code --wait" |
46 | 31 | } |
47 | 32 |
|
48 | 33 | // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
|
0 commit comments