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.
Dev container for Hilla
// 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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment