Add devcontainer.json for local development using devcontainers (#6738)
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
This commit is contained in:
parent
104141ae86
commit
ac8d151e77
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/base:dev-bullseye",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/node:1": {}
|
||||||
|
},
|
||||||
|
"overrideFeatureInstallOrder": [],
|
||||||
|
"hostRequirements": {
|
||||||
|
"cpus": 4,
|
||||||
|
"memory": "16gb",
|
||||||
|
"storage": "16gb"
|
||||||
|
},
|
||||||
|
"remoteEnv": {
|
||||||
|
"PODMAN_USERNS": "keep-id"
|
||||||
|
},
|
||||||
|
"containerUser": "vscode",
|
||||||
|
"postStartCommand": ".devcontainer/post-start.sh"
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
nvm install
|
||||||
|
npm install
|
|
@ -28,6 +28,30 @@ Gitpod automatically installs the repo-specific packages for you.
|
||||||
You're now ready to [build](#build), [serve](#serve) or make updates to the
|
You're now ready to [build](#build), [serve](#serve) or make updates to the
|
||||||
website files.
|
website files.
|
||||||
|
|
||||||
|
## Development container setup
|
||||||
|
|
||||||
|
{{% alert title="Note" %}}
|
||||||
|
|
||||||
|
[Development (dev) containers](https://containers.dev/) are a standard. You can
|
||||||
|
therefore you run the dev container for this repository using any tool
|
||||||
|
supporting this standard, such as:
|
||||||
|
|
||||||
|
- [GitHub Codespaces](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#about-dev-containers)
|
||||||
|
- [DevPod](https://devpod.sh/docs/developing-in-workspaces/devcontainer-json)
|
||||||
|
- [VSCode](https://code.visualstudio.com/docs/devcontainers/containers#_installation)
|
||||||
|
|
||||||
|
{{% /alert %}}
|
||||||
|
|
||||||
|
1. [Fork][] and then [clone][] the website repository at
|
||||||
|
<{{% param github_repo %}}>.
|
||||||
|
|
||||||
|
2. Go to the repository directory.
|
||||||
|
|
||||||
|
3. Open up the project in your favorite Dev Container tool.
|
||||||
|
|
||||||
|
You're now ready to [build](#build), [serve](#serve) or make updates to the
|
||||||
|
website files.
|
||||||
|
|
||||||
## Local setup
|
## Local setup
|
||||||
|
|
||||||
1. [Fork][] and then [clone][] the website repository at
|
1. [Fork][] and then [clone][] the website repository at
|
||||||
|
|
|
@ -539,10 +539,18 @@
|
||||||
"StatusCode": 206,
|
"StatusCode": 206,
|
||||||
"LastSeen": "2025-02-01T06:58:05.02751-05:00"
|
"LastSeen": "2025-02-01T06:58:05.02751-05:00"
|
||||||
},
|
},
|
||||||
|
"https://code.visualstudio.com": {
|
||||||
|
"StatusCode": 206,
|
||||||
|
"LastSeen": "2025-04-22T19:19:29.392140654Z"
|
||||||
|
},
|
||||||
"https://code.visualstudio.com/": {
|
"https://code.visualstudio.com/": {
|
||||||
"StatusCode": 206,
|
"StatusCode": 206,
|
||||||
"LastSeen": "2025-01-30T16:59:55.593014-05:00"
|
"LastSeen": "2025-01-30T16:59:55.593014-05:00"
|
||||||
},
|
},
|
||||||
|
"https://code.visualstudio.com/docs/devcontainers/containers#_installation": {
|
||||||
|
"StatusCode": 206,
|
||||||
|
"LastSeen": "2025-04-22T19:19:32.045577138Z"
|
||||||
|
},
|
||||||
"https://collectd.org/wiki/index.php/Binary_protocol": {
|
"https://collectd.org/wiki/index.php/Binary_protocol": {
|
||||||
"StatusCode": 206,
|
"StatusCode": 206,
|
||||||
"LastSeen": "2025-01-13T11:43:49.558162-05:00"
|
"LastSeen": "2025-01-13T11:43:49.558162-05:00"
|
||||||
|
@ -583,6 +591,10 @@
|
||||||
"StatusCode": 206,
|
"StatusCode": 206,
|
||||||
"LastSeen": "2025-01-15T13:17:28.36005-05:00"
|
"LastSeen": "2025-01-15T13:17:28.36005-05:00"
|
||||||
},
|
},
|
||||||
|
"https://containers.dev/": {
|
||||||
|
"StatusCode": 206,
|
||||||
|
"LastSeen": "2025-04-22T19:19:25.586763282Z"
|
||||||
|
},
|
||||||
"https://contribute.cncf.io/resources/project-services/audits/": {
|
"https://contribute.cncf.io/resources/project-services/audits/": {
|
||||||
"StatusCode": 206,
|
"StatusCode": 206,
|
||||||
"LastSeen": "2025-01-04T17:06:30.360149-05:00"
|
"LastSeen": "2025-01-04T17:06:30.360149-05:00"
|
||||||
|
@ -927,6 +939,10 @@
|
||||||
"StatusCode": 200,
|
"StatusCode": 200,
|
||||||
"LastSeen": "2025-01-30T16:59:50.483226-05:00"
|
"LastSeen": "2025-01-30T16:59:50.483226-05:00"
|
||||||
},
|
},
|
||||||
|
"https://devpod.sh/docs/developing-in-workspaces/devcontainer-json": {
|
||||||
|
"StatusCode": 206,
|
||||||
|
"LastSeen": "2025-04-30T15:20:21.96523571Z"
|
||||||
|
},
|
||||||
"https://devstats.cncf.io/": {
|
"https://devstats.cncf.io/": {
|
||||||
"StatusCode": 206,
|
"StatusCode": 206,
|
||||||
"LastSeen": "2025-01-06T11:33:39.730093-05:00"
|
"LastSeen": "2025-01-06T11:33:39.730093-05:00"
|
||||||
|
@ -1239,6 +1255,10 @@
|
||||||
"StatusCode": 206,
|
"StatusCode": 206,
|
||||||
"LastSeen": "2025-02-01T07:20:41.337867-05:00"
|
"LastSeen": "2025-02-01T07:20:41.337867-05:00"
|
||||||
},
|
},
|
||||||
|
"https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#about-dev-containers": {
|
||||||
|
"StatusCode": 206,
|
||||||
|
"LastSeen": "2025-04-30T15:20:20.247498933Z"
|
||||||
|
},
|
||||||
"https://docs.github.com/en/get-started/learning-about-github/github-glossary#pull-request": {
|
"https://docs.github.com/en/get-started/learning-about-github/github-glossary#pull-request": {
|
||||||
"StatusCode": 200,
|
"StatusCode": 200,
|
||||||
"LastSeen": "2025-02-06T02:05:12.345Z"
|
"LastSeen": "2025-02-06T02:05:12.345Z"
|
||||||
|
|
Loading…
Reference in New Issue