Sign inSign up

catalinvr1/devcontainer-java21

By catalinvr1

•Updated about 2 months ago

An updated devcontainer based on the mcr.microsoft.com/devcontainers/java:21 that uses Debian 13

Image
Developer tools
0

652

catalinvr1/devcontainer-java21 repository overview

Create the .devcontainer/devcontainer.json file on your project and copy the content.

{
  "name": "DevContainer(Java 21)",
  "image": "catalinvr1/devcontainer-java21:latest",
  "features": {
    "ghcr.io/devcontainers/features/docker-in-docker:2": {
      "moby": false
    },
    "ghcr.io/devcontainers/features/github-cli:1": {},
    "ghcr.io/devcontainers/features/sshd:1": {}
  },
  "hostRequirements": {
    "cpus": 4,
    "memory": "8gb",
    "storage": "32gb"
  },
  "forwardPorts": [8080, 1433, 5672, 27017],
  "portsAttributes": {
    "8080": { "label": "app" },
    "1433": { "label": "azure-sql-edge" },
    "5672": { "label": "service-bus-emulator" },
    "27017": { "label": "mongo" }
  },
  "remoteUser": "vscode"
}

You can link you postAttach and postCreate commands by pasting the following lines

  "postAttachCommand": "bash .devcontainer/post-attach.sh",
  "postCreateCommand": "bash .devcontainer/post-create.sh"

Tag summary

Content type

Image

Digest

sha256:16be1f04f…

Size

2.8 GB

Last updated

about 2 months ago

docker pull catalinvr1/devcontainer-java21