Skip to content

Instantly share code, notes, and snippets.

@nickdala
Created December 3, 2023 17:59
Show Gist options
  • Save nickdala/afad9f0cc27b33afc357483df0b9711a to your computer and use it in GitHub Desktop.
Save nickdala/afad9f0cc27b33afc357483df0b9711a to your computer and use it in GitHub Desktop.

Revisions

  1. nickdala created this gist Dec 3, 2023.
    39 changes: 39 additions & 0 deletions devcontainer.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    // For format details, see https://aka.ms/devcontainer.json. For config options, see the
    // README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
    {
    "name": "Ubuntu",
    // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
    "image": "mcr.microsoft.com/devcontainers/base:jammy",

    "remoteUser": "vscode",
    "containerEnv": {
    "M2": "/home/vscode" // Maven cache
    },
    "features": {
    // https://containers.dev/features/
    "ghcr.io/devcontainers/features/java:1": {
    "version": "17",
    "installMaven": "true",
    "installGradle": "true"
    },
    "ghcr.io/devcontainers/features/node:1": {}
    },
    "forwardPorts": [8080],
    "customizations": {
    "vscode": {
    "extensions": [
    // Extension Pack for Java; includes language support, debugging, maven.
    "vscjava.vscode-java-pack",
    // Spring Boot Extension Pack
    "vmware.vscode-boot-dev-pack",
    // YAML language support
    "redhat.vscode-yaml",
    // EditorConfig
    "EditorConfig.EditorConfig"
    ]
    }
    },
    "hostRequirements": {
    "cpus": 2
    }
    }