From 0db7637cb523d45d12067194108d737cee30793c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiana=20=F0=9F=9A=80=20=20Campanari?= Date: Thu, 10 Oct 2024 23:30:08 -0300 Subject: [PATCH] Update devcontainer.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabiana 🚀 Campanari --- .devcontainer/devcontainer.json | 75 +++++++++++++++++++++------------ 1 file changed, 49 insertions(+), 26 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3574878..f5c6c12 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,35 +1,58 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/ubuntu { - "name": "Renovate", + "name": "Ubuntu", "build": { - "dockerfile": "Dockerfile" + "dockerfile": "Dockerfile", + // Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04 + // Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon. + "args": { + "VARIANT": "ubuntu-22.04" + } }, - "init": true, - "hostRequirements": { - "cpus": 4, - "memory": "7gb", - "storage": "32gb" + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + "onCreateCommand": "bash .devcontainer/on-create.sh", + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "bash .devcontainer/post-create.sh", + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode", + "features": { + "ghcr.io/devcontainers/features/docker-outside-of-docker": "latest", + "ghcr.io/devcontainers/features/github-cli": "latest", + "ghcr.io/devcontainers/features/node": "lts", + "ghcr.io/devcontainers/features/go": "latest", + "ghcr.io/devcontainers/features/ruby": "3.3.1", + "ghcr.io/devcontainers/features/rust": "latest", + "ghcr.io/devcontainers/features/dotnet": "latest", + "ghcr.io/devcontainers/features/sshd:1": { + "version": "latest" + } }, "customizations": { "vscode": { - "terminal.integrated.profiles.linux": { - "bash": { - "path": "bash", - "icon": "terminal-bash" - } - }, "extensions": [ - "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode", - "orta.vscode-jest", - "editorconfig.editorconfig", - "github.vscode-github-actions" - ] + "ms-vscode-remote.remote-containers", + "rubocop.vscode-rubocop", + "shopify.ruby-extensions-pack" + ], + "settings": { + "[ruby]": { + "editor.defaultFormatter": "Shopify.ruby-lsp", + "editor.formatOnSave": true, + "editor.formatOnType": true, + "editor.insertSpaces": true, + "editor.rulers": [120], + "editor.semanticHighlighting.enabled": true, + "editor.tabSize": 2, + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "files.trimTrailingWhitespace": true + }, + "rubocop.autocorrect": true, + "sorbet.enabled": true + } } - }, - "postCreateCommand": [".devcontainer/post-create.sh"], - // Otherwise jest watcher fails because deps were not installed yet - "waitFor": "postCreateCommand" + } } - -# Remote Shell Added -"ghcr.io/wxw-matt/devcontainer-features/command_runner:0": {}