.devcontainer/devcontainer.json in openstax_kitchen-2.0.0 vs .devcontainer/devcontainer.json in openstax_kitchen-3.0.0
- old
+ new
@@ -1,19 +1,39 @@
{
- "name": "Kitchen Dev",
- "dockerComposeFile": ["../docker-compose.yml"],
- "service": "app",
- "workspaceFolder": "/code",
- "shutdownAction": "stopCompose",
- "extensions": [
- "castwide.solargraph",
- ],
- "settings": {
- "[ruby]": {
- "editor.insertSpaces": true,
- "editor.tabSize": 2
- },
- "solargraph.commandPath": "/usr/local/bundle/bin/solargraph",
- "solargraph.bundlerPath": "/usr/local/bin/bundle",
- },
- "postCreateCommand": "bundle install"
+ "name": "Kitchen Dev",
+ "build": {
+ "dockerfile": "../docker/Dockerfile",
+ "context": "..",
+ "args": {
+ "bundler_version": "2.2.4"
+ }
+ },
+ "workspaceMount": "source=${localWorkspaceFolder},target=/code,type=bind,consistency=default",
+ "workspaceFolder": "/code",
+ "extensions": [
+ "castwide.solargraph",
+ "rebornix.Ruby",
+ "MS-vsliveshare.vsliveshare-pack"
+ ],
+ "settings": {
+ "files.trimTrailingWhitespace": true,
+ "files.insertFinalNewline": true,
+ "terminal.integrated.shell.linux": "/bin/bash",
+ "[ruby]": {
+ "editor.insertSpaces": true,
+ "editor.tabSize": 2,
+ },
+ "ruby.lint": {
+ "rubocop": {
+ "useBundler": true // enable rubocop via bundler
+ },
+ },
+ "ruby.format": "rubocop", // use rubocop for formatting
+ "ruby.useLanguageServer": true,
+ "solargraph.commandPath": "/usr/local/bundle/bin/solargraph",
+ "solargraph.bundlerPath": "/usr/local/bin/bundle",
+ "ruby.rubocop.executePath": "/usr/local/bundle/bin/",
+ "ruby.rubocop.onSave": true,
+ "ruby.rubocop.configFilePath": "/code/.rubocop.yml",
+ "terminal.integrated.scrollback": 100000
+ }
}