Sha256: d60dc7e171d6884263ad09ed40fffb04406131ddb6a02d502e83931569890dcf

Contents?: true

Size: 1.31 KB

Versions: 8

Compression:

Stored size: 1.31 KB

Contents

// 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": "<%= options[:app_name] %>",
  "dockerComposeFile": "compose.yaml",
  "service": "rails-app",
  "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

  // Features to add to the dev container. More info: https://containers.dev/features.
  "features": {
    <%= features.map { |key, value| "\"#{key}\": #{value.as_json}" }.join(",\n    ") %>
  },

<%- if !container_env.empty? -%>
  "containerEnv": {
    <%= container_env.map { |key, value| "\"#{key}\": \"#{value}\"" }.join(",\n    ") %>
  },
<%- end -%>

  // Use 'forwardPorts' to make a list of ports inside the container available locally.
  "forwardPorts": <%= forward_ports.as_json %>,

  // Configure tool-specific properties.
  // "customizations": {},

  // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  // "remoteUser": "root",

<%- if !mounts.empty? -%>
  "mounts": [
    <%= mounts.map { |mount| "{\n      " + mount.map { |key, value| "\"#{key}\": \"#{value}\"" }.join(",\n      ") + "\n    }" }.join(",\n    ") %>
  ],
<%- end -%>

  // Use 'postCreateCommand' to run commands after the container is created.
  "postCreateCommand": "bin/setup"
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
railties-7.2.2 lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt
railties-7.2.1.2 lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt
railties-7.2.1.1 lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt
railties-7.2.1 lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt
railties-7.2.0 lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt
railties-7.2.0.rc1 lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt
railties-7.2.0.beta3 lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt
railties-7.2.0.beta2 lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt