Created
October 13, 2023 22:44
-
-
Save tomascco/feb3faa9fbb3940e631aea3b1c4ae4f3 to your computer and use it in GitHub Desktop.
Ruby on Whales .devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby-rails-postgres | |
{ | |
"name": "Name", | |
"dockerComposeFile": "../.dockerdev/compose.yml", | |
"overrideCommand": true, | |
"service": "rails", | |
"workspaceFolder": "/app", | |
// Se tiver outros serviços necessários no compose, como "webpackserver" ou "esbuild" | |
// colocar aqui | |
"runServices": ["postgres", "redis", "sidekiq"], | |
// aqui tem o oh-my-zsh | |
"features": { | |
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": { | |
"plugins": "git ruby", | |
"omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions", | |
"username": "root" | |
} | |
}, | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"Shopify.ruby-extensions-pack", | |
"Gruntfuggly.todo-tree" | |
] | |
} | |
} | |
// Features to add to the dev container. More info: https://containers.dev/features. | |
// "features": {}, | |
// Use 'forwardPorts' to make a list of ports inside the container available locally. | |
// This can be used to network with other containers or the host. | |
// "forwardPorts": [3000, 5432], | |
// Use 'postCreateCommand' to run commands after the container is created. | |
// "postCreateCommand": "bundle install && rake db:setup", | |
// Configure tool-specific properties. | |
// "customizations": {}, | |
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | |
// "remoteUser": "root" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment