From b66fc019e92e992d1cd03fea7cf4eb53d2aa9bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oleksis=20Fraga=20Men=C3=A9ndez?= Date: Sun, 20 Nov 2022 22:08:16 -0500 Subject: [PATCH] Add devcontainer/features for use Codespaces - Install [act](https://github.com/dhoeric/features/tree/main/src/act#reference) - run github action locally - Features like black, flake8 , docker-in-docker --- .devcontainer/devcontainer.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..2b5b16dcbb --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,25 @@ +{ + "name": "Python 3", + "image": "mcr.microsoft.com/devcontainers/python:3.9", + "features": { + "ghcr.io/devcontainers/features/node:1": { + "version": "latest" + }, + "ghcr.io/devcontainers-contrib/features/black:1": {}, + "ghcr.io/devcontainers-contrib/features/flake8:1": {}, + "ghcr.io/devcontainers/features/docker-in-docker:1": {}, + "ghcr.io/dhoeric/features/act: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.txt", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +}