|
| 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 |
1 | 3 | { |
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" |
9 | 49 | } |
0 commit comments