From 3ce0b9111b4920e9a4680586c3d1afc81011a36e Mon Sep 17 00:00:00 2001 From: Borja Esteban Date: Tue, 15 Nov 2022 10:38:21 +0000 Subject: [PATCH] add devcontainer --- .devcontainer/devcontainer.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100755 index 0000000..35c1344 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,27 @@ +{ + "name": "Python 3", + "image": "mcr.microsoft.com/devcontainers/python:3.10-bullseye", + "features": { + "ghcr.io/devcontainers/features/node:1": { + "version": "lts" + }, + "ghcr.io/devcontainers/features/common-utils:1": {}, + "ghcr.io/devcontainers/features/git:1": {}, + "ghcr.io/devcontainers/features/nvidia-cuda:1": {}, + "ghcr.io/rocker-org/devcontainer-features/pandoc:1": {}, + "ghcr.io/devcontainers-contrib/features/pylint:1": {}, + "ghcr.io/devcontainers-contrib/features/tox:1": {} + }, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "pip3 install --user -r requirements-test.txt", + + // Configure tool-specific properties. + // "customizations": {}, + + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" +}