Commit a0dca70
authored
Add devcontainer configuration for development (#65)
This PR adds a devcontainer configuration that forwards common ports
used during development including those for WebRTC. Installation of
kraftkit and updating/upgrading occur on container creation using the
`onCreateCommand` key. The latest Ubuntu LTS is used in an attempt to
maintain some parity with the build pipeline.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Add VS Code devcontainer based on Ubuntu with Docker-in-Docker,
Go/Node features, kraftkit install on create, and forwarded TCP/UDP
ports (incl. WebRTC).
>
> - **Dev Environment**:
> - **New `/.devcontainer/devcontainer.json`**:
> - Base image `mcr.microsoft.com/devcontainers/base:ubuntu` with
features: Docker-in-Docker, Go, Node (latest).
> - `onCreateCommand`: apt setup, add Unikraft repo, install `kraftkit`,
system upgrade.
> - Forward ports: `444` (Kernel Images API), `8080` (Web Interface),
`9222` (CDP); UDP range `56000-56100` for WebRTC.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d028f0e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---
<!-- mesa-description-start -->
## TL;DR
Adds a devcontainer configuration to standardize the development
environment.
## Why we made these changes
To create a consistent development environment that mirrors the build
pipeline, simplifies onboarding, and automates the installation of
necessary tools like `kraftkit`.
## What changed?
- Added `.devcontainer/devcontainer.json` to define the development
environment.
- The container is based on Ubuntu LTS and includes features for
Docker-in-Docker, Go, and Node.js.
- Uses `onCreateCommand` to automatically install `kraftkit` and run
system updates on container creation.
- Forwards TCP ports `444` (API), `8080` (Web), `9222` (CDP), and the
UDP port range `56000-56100` for WebRTC.
## Validation
- [ ] Devcontainer builds and starts successfully.
- [ ] `kraftkit` is installed and available in the container's terminal.
- [ ] Forwarded ports are accessible from the host machine.
<sup>_Description generated by Mesa. [Update
settings](https://app.mesa.dev/onkernel/settings/pull-requests)_</sup>
<!-- mesa-description-end -->1 parent 8248caf commit a0dca70
1 file changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments