Skip to content

Commit 9c3b637

Browse files
authored
chore: add devcontainer (#125)
1 parent 69b17d4 commit 9c3b637

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
3+
{
4+
"name": "Debian",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:debian-11",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
"features": {
10+
"ghcr.io/devcontainers/features/dotnet:2": {
11+
"version": "8.0"
12+
},
13+
"ghcr.io/devcontainers/features/python:1": {
14+
"installTools": false,
15+
"version": "3.9"
16+
},
17+
"ghcr.io/devcontainers-contrib/features/poetry:2": {
18+
"version": "1.8.2"
19+
},
20+
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
21+
"ghcr.io/devcontainers/features/github-cli:1": {}
22+
},
23+
24+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
25+
// "forwardPorts": [],
26+
27+
// Use 'postCreateCommand' to run commands after the container is created.
28+
"postCreateCommand": ".devcontainer/setup.sh",
29+
30+
// Configure tool-specific properties.
31+
"customizations": {
32+
"vscode": {
33+
"extensions": [
34+
"GitHub.copilot",
35+
"ms-python.python",
36+
"ms-dotnettools.csharp"
37+
]
38+
}
39+
}
40+
41+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
42+
// "remoteUser": "root"
43+
}

.devcontainer/setup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
dotnet build
4+
poetry install --no-interaction --no-root
5+
poetry run pip install -e .
6+
poetry run pre-commit install-hooks

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

0 commit comments

Comments
 (0)