diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..acc1417d --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,9 @@ +FROM gradle:9.2.1-jdk21-ubi + +ARG USERNAME=vscode +ARG USER_UID=1000 +ARG USER_GID=$USER_UID + +# Create the user +RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME +USER vscode \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..71f3b1be --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,13 @@ +{ + "build": { "dockerfile": "Dockerfile" }, + "forwardPorts": [3000], + "containerUser": "vscode", + "remoteEnv": { + "PODMAN_USERNS": "keep-id" + }, + "customizations": { + "vscode": { + "extensions": ["vscjava.vscode-java-pack"] + } + } +} \ No newline at end of file