From c5b741d98fed4b04c1017f0ace3d6b6566ea7bba Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 16 Nov 2022 13:23:51 +0100 Subject: Experiment Development Containers / GitHub Codespaces (#4859) * Experiment Development Containers / GitHub Codespaces https://containers.dev/ https://github.com/features/codespaces * Fix tests --- .devcontainer/devcontainer.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .devcontainer/devcontainer.json (limited to '.devcontainer/devcontainer.json') diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..50318d75f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,37 @@ +// For format details, see https://aka.ms/devcontainer.json +{ + "name": "FreshRSS-dev-Alpine", + "build": { + "dockerfile": "Dockerfile" + }, + "extensions": [ + "bmewburn.vscode-intelephense-client", + "DavidAnson.vscode-markdownlint", + "dbaeumer.vscode-eslint", + "eamodio.gitlens", + "EditorConfig.EditorConfig", + "foxundermoon.shell-format", + "mrmlnc.vscode-apache", + "redhat.vscode-yaml", + "timonwong.shellcheck", + "ValeryanM.vscode-phpsab" + ], + "forwardPorts": [ + 8080 + ], + "portsAttributes": { + "8080": { + "label": "FreshRSS Apache", + "onAutoForward": "notify" + } + }, + "mounts": [ + { + "source": "vscode-freshrss-data", + "target": "/home/developer/freshrss-data", + "type": "volume" + } + ], + "remoteUser": "developer", + "postCreateCommand": "sudo .devcontainer/postCreateCommand.sh" +} -- cgit v1.2.3 From 3bcceb133831ad511a739d94f11d654a7e9f3449 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 16 Nov 2022 16:26:06 +0100 Subject: Fix Development Containers / GitHub Codespaces (#4860) --- .devcontainer/devcontainer.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to '.devcontainer/devcontainer.json') diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 50318d75f..7d344e674 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,6 +12,7 @@ "EditorConfig.EditorConfig", "foxundermoon.shell-format", "mrmlnc.vscode-apache", + "ms-azuretools.vscode-docker", "redhat.vscode-yaml", "timonwong.shellcheck", "ValeryanM.vscode-phpsab" @@ -25,13 +26,6 @@ "onAutoForward": "notify" } }, - "mounts": [ - { - "source": "vscode-freshrss-data", - "target": "/home/developer/freshrss-data", - "type": "volume" - } - ], "remoteUser": "developer", "postCreateCommand": "sudo .devcontainer/postCreateCommand.sh" } -- cgit v1.2.3 From c170c390b7d51f809b3e0064bf883221037397a3 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 27 Feb 2023 10:08:16 +0100 Subject: Dev Container extensions syntax update (#5145) The JSON syntax has changed for specifying extensions https://aka.ms/devcontainer.json --- .devcontainer/devcontainer.json | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to '.devcontainer/devcontainer.json') diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7d344e674..a30fdf5c7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,19 +4,23 @@ "build": { "dockerfile": "Dockerfile" }, - "extensions": [ - "bmewburn.vscode-intelephense-client", - "DavidAnson.vscode-markdownlint", - "dbaeumer.vscode-eslint", - "eamodio.gitlens", - "EditorConfig.EditorConfig", - "foxundermoon.shell-format", - "mrmlnc.vscode-apache", - "ms-azuretools.vscode-docker", - "redhat.vscode-yaml", - "timonwong.shellcheck", - "ValeryanM.vscode-phpsab" - ], + "customizations": { + "vscode": { + "extensions": [ + "bmewburn.vscode-intelephense-client", + "DavidAnson.vscode-markdownlint", + "dbaeumer.vscode-eslint", + "eamodio.gitlens", + "EditorConfig.EditorConfig", + "foxundermoon.shell-format", + "mrmlnc.vscode-apache", + "ms-azuretools.vscode-docker", + "redhat.vscode-yaml", + "timonwong.shellcheck", + "ValeryanM.vscode-phpsab" + ] + } + }, "forwardPorts": [ 8080 ], -- cgit v1.2.3