-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevcontainer.json
More file actions
50 lines (45 loc) · 1.94 KB
/
devcontainer.json
File metadata and controls
50 lines (45 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// 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": "buildstock-fetch",
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
"features": {
// Install just
"ghcr.io/guiyomh/features/just:0.1.0": {
"version": "1.40.0"
},
// Install AWS CLI
"ghcr.io/devcontainers/features/aws-cli:1": {}
},
"initializeCommand": "mkdir -p ${localEnv:HOME}/.aws && (chown 1000:1000 ${localEnv:HOME}/.aws 2>/dev/null || true)", // Container won't start if .aws dir is missing, ensure host owner is same as container owner
"mounts": [
"source=${localEnv:HOME}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached"
],
"remoteEnv": {
"AWS_REGION": "us-west-2"
},
// Use 'postCreateCommand' to run commands after the container is created.
// This is used to install post-commit hooks, uv, virtualenv, and dependencies.
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
"customizations": {
"vscode": {
// Install VS Code extensions.
"extensions": [
"ms-python.python",
"nefrob.vscode-just-syntax",
"tamasfe.even-better-toml"
],
// Configure tool-specific settings.
"settings": {
"python.testing.pytestArgs": ["tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.defaultInterpreterPath": "/workspaces/buildstock-fetch/.venv/bin/python",
"python.testing.pytestPath": "/workspaces/buildstock-fetch/.venv/bin/pytest",
"terminal.integrated.env.linux": {
"PATH": "/workspaces/buildstock-fetch/.venv/bin:${env:PATH}"
}
}
}
}
}