Skip to content

Commit e2fd9d2

Browse files
.devcontainer for Github Codespaces and VSCode (reopened) (#3424)
* basic container * use different README
1 parent afa702e commit e2fd9d2

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "Dev Container",
3+
"build": {
4+
"dockerfile": "../src/Dockerfile",
5+
"context": "../src/",
6+
"args": {
7+
"IS_DEV_CONTAINER": "true",
8+
"SKIPGC": "false"
9+
}
10+
},
11+
"forwardPorts": [
12+
8080
13+
],
14+
"customizations": {
15+
"vscode": {
16+
"settings": {
17+
"python.defaultInterpreterPath": "/usr/local/bin/python",
18+
"python.linting.enabled": true,
19+
"python.linting.pylintEnabled": true
20+
},
21+
"extensions": [
22+
"ms-python.python",
23+
"ms-python.vscode-pylance"
24+
]
25+
},
26+
"codespaces": {
27+
"openFiles": [
28+
"src/README.md"
29+
]
30+
}
31+
}
32+
}

src/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Developing the Web Almanac
22

3-
The Web Almanac can be developed on macOS, Windows or Linux. It requires Node v12, Python v3.8 and pip to be installed. Alternatively, use Docker to avoid manually configuring the development environment.
3+
The Web Almanac can be developed on macOS, Windows or Linux. It requires Node v12, Python v3.8 and pip to be installed. You can use Docker to avoid manually configuring the development environment.
4+
It can be quickly deployed as a development container in GitHub Codespaces to develop in cloud:
5+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/HTTPArchive/almanac.httparchive.org?quickstart=1)
46

57
## Style guide
68

0 commit comments

Comments
 (0)