Skip to content

Commit

Permalink
Add devcontainer
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Blyler <[email protected]>
  • Loading branch information
ablyler committed Oct 21, 2023
1 parent 38dd203 commit 3ceb0cb
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM mcr.microsoft.com/devcontainers/python:1-3.11-bullseye

# install direnv
RUN apt-get update && \
apt-get install --no-install-recommends -y direnv && \
rm -rf /var/lib/apt/lists/*
43 changes: 43 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
"build": {
// Path is relative to the devcontainer.json file.
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers-contrib/features/pipenv:2": {}
},
"customizations": {
"vscode": {
"extensions": [
"donjayamanne.python-environment-manager",
"esbenp.prettier-vscode",
"GitHub.copilot-chat",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"ms-azuretools.vscode-docker",
"ms-python.python",
"redhat.vscode-yaml",
"visualstudioexptteam.vscodeintellicode",
"trunk.io"
]
}
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// 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": "PIPENV_VENV_IN_PROJECT=1 pipenv install -d"

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

0 comments on commit 3ceb0cb

Please sign in to comment.