unclesp1d3r/CipherSwarm

View on GitHub
.devcontainer/devcontainer.json

Summary

Maintainability
Test Coverage
// 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
{
  "name": "cipher_swarm",
  "dockerComposeFile": "compose.yaml",
  "service": "rails-app",
  "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
  // Features to add to the dev container. More info: https://containers.dev/features.
  "features": {
    "ghcr.io/devcontainers/features/github-cli:1": {},
    "ghcr.io/rails/devcontainer/features/activestorage": {},
    "ghcr.io/devcontainers/features/node:1": {},
    "ghcr.io/rails/devcontainer/features/postgres-client": {}
  },
  "containerEnv": {
    "REDIS_URL": "redis://redis:6379/1",
    "DB_HOST": "postgres"
  },
  // Use 'forwardPorts' to make a list of ports inside the container available locally.
  "forwardPorts": [
    3000
  ],
  // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  "remoteUser": "root",
  // Use 'postCreateCommand' to run commands after the container is created.
  "customizations": {
    "vscode": {
      "extensions": [
        "Shopify.ruby-lsp",
        "mikestead.dotenv",
        "kaiwood.endwise",
        "usernamehw.errorlens",
        "EditorConfig.EditorConfig",
        "aliariff.vscode-erb-beautify",
        "github.vscode-github-actions",
        "ms-azuretools.vscode-docker",
        "redhat.vscode-yaml",
        "rubocop.vscode-rubocop",
        "karunamurti.haml",
        "ms-vscode-remote.remote-containers",
        "DavidAnson.vscode-markdownlint"
      ]
    }
  },
  "postCreateCommand": "bin/setup"
}