From 22cc7cedffcd6229faeabc526da6523bdc94ca88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Mon, 12 Apr 2021 09:54:06 +0000 Subject: [PATCH 1/2] Use Dockerfile --- .devcontainer/devcontainer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a8ace9cc6..8ef4c1501 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,7 @@ { "name": "ejabberd", + "dockerFile": "Dockerfile", + "forwardPorts": [ 4369, 5222, 5269, 5280], // "dockerComposeFile": "docker-compose.yml", "workspaceFolder": "/workspace", From ab2b499869114c82eacf015a73d42088b37fae8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Tue, 13 Apr 2021 10:25:05 +0200 Subject: [PATCH 2/2] Update devcontainer.json --- .devcontainer/devcontainer.json | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8ef4c1501..974bced7b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,8 +1,12 @@ { "name": "ejabberd", - "dockerFile": "Dockerfile", - "forwardPorts": [ 4369, 5222, 5269, 5280], // "dockerComposeFile": "docker-compose.yml", + "build": { + "dockerfile": "Dockerfile", + "args": { + "VARIANT": "1.11" + } + }, "workspaceFolder": "/workspace", // Set *default* container specific settings.json values on container create. @@ -11,7 +15,13 @@ }, // Add the IDs of extensions you want installed when the container is created. - // "extensions": [], + "extensions": [], + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + "forwardPorts": [5222, 5280, 5269], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "sh .devcontainer/post-create.sh", // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode"