From 2dcee004a8b5dd295b8f9ee7d65ab3301252478f Mon Sep 17 00:00:00 2001 From: Christopher Hakkaart Date: Thu, 12 Sep 2024 08:46:37 +0200 Subject: [PATCH 1/2] Create devcontainer.json --- .devcontainer/devcontainer.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..ea27a584 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,27 @@ +{ + "name": "nfcore", + "image": "nfcore/gitpod:latest", + "remoteUser": "gitpod", + + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "python.defaultInterpreterPath": "/opt/conda/bin/python", + "python.linting.enabled": true, + "python.linting.pylintEnabled": true, + "python.formatting.autopep8Path": "/opt/conda/bin/autopep8", + "python.formatting.yapfPath": "/opt/conda/bin/yapf", + "python.linting.flake8Path": "/opt/conda/bin/flake8", + "python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle", + "python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle", + "python.linting.pylintPath": "/opt/conda/bin/pylint" + }, + + // Add the IDs of extensions you want installed when the container is created. + "extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"] + } + } +} From ff7392c80618167cb50004f9471eb4d9228d0e21 Mon Sep 17 00:00:00 2001 From: Christopher Hakkaart Date: Thu, 12 Sep 2024 09:48:29 +0200 Subject: [PATCH 2/2] Update .devcontainer/devcontainer.json Co-authored-by: Adam Talbot <12817534+adamrtalbot@users.noreply.github.com> --- .devcontainer/devcontainer.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ea27a584..f8592a1d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -23,5 +23,11 @@ // Add the IDs of extensions you want installed when the container is created. "extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"] } + }, + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } } }