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+ // For format details, see https://containers.dev/implementors/json_reference/.
2+ // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/ruby
33{
4- "name" : " RubyUI" ,
5- // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6- "image" : " ghcr.io/rails/devcontainer/images/ruby:3.3.3" ,
4+ "name" : " ruby_ui" ,
5+ "dockerComposeFile" : " compose.yaml" ,
6+ "service" : " app" ,
7+ "workspaceFolder" : " /workspaces/${localWorkspaceFolderBasename}" ,
78 // Features to add to the dev container. More info: https://containers.dev/features.
8- // Make sure RUBY_VERSION matches the Ruby version in .ruby-version
99 "features" : {
10- "ghcr.io/devcontainers/features/github-cli:1" : {}
10+ "ghcr.io/devcontainers/features/github-cli:1" : {},
11+ "ghcr.io/devcontainers/features/docker-outside-of-docker:1" : {
12+ "moby" : false
13+ }
1114 },
1215 "customizations" : {
1316 "vscode" : {
1417 "extensions" : [
1518 " testdouble.vscode-standard-ruby" ,
1619 " Shopify.ruby-lsp"
17- ],
18- "settings" : {
19- "rubyLsp.rubyVersionManager" : {
20- "identifier" : " rbenv"
21- }
22- }
20+ ]
2321 }
2422 },
25- // Use 'forwardPorts' to make a list of ports inside the container available locally.
26- // "forwardPorts": [],
27- // Use 'postCreateCommand' to run commands after the container is created.
28- "onCreateCommand" : " bundle install"
2923 // Configure tool-specific properties.
3024 // "customizations": {},
31- // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
32- // "remoteUser": "root"
33- }
25+ // Uncomment to connect as root instead. More info: https://containers.dev/implementors/json_reference/#remoteUser.
26+ // "remoteUser": "root",
27+ // Use 'postCreateCommand' to run commands after the container is created.
28+ "postCreateCommand" : " bundle check || bundle install"
29+ }
0 commit comments