microsoft/openvmm

Public

mirrored fromhttps://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
bddef9a42e9ca8c8cd4aad200fb1a03582592eed

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.devcontainer/devcontainer.json

41lines · modecode

1// This devcontainer is intended for developer use only, via the dev containers
2// extension or Github codespaces. It is not used for CI or anything else.
3{
4 "name": "Ubuntu",
5 "image": "mcr.microsoft.com/devcontainers/base:jammy",
6
7 // Add the Rust feature and install all supported targets, since this is
8 // meant for local developer use.
9 "features": {
10 "ghcr.io/devcontainers/features/rust:1": {
11 "version": "latest",
12 "profile": "default",
13 "targets": "aarch64-apple-darwin,aarch64-unknown-linux-musl,x86_64-pc-windows-msvc,x86_64-unknown-linux-gnu,x86_64-unknown-linux-musl,x86_64-unknown-none"
14 },
15
16 // Add the SSHD feature so that users can SSH into the container.
17 "ghcr.io/devcontainers/features/sshd:1": {}
18 },
19
20 // Add rust-analyzer by default.
21 "customizations": {
22 "vscode": {
23 "extensions": [
24 "rust-lang.rust-analyzer"
25 ]
26 }
27 },
28
29 // Allow kvm by setting privileged to true.
30 "privileged": true,
31
32 // Restore packages so that users can build as soon as the container is
33 // ready.
34 "updateContentCommand": "cargo xflowey restore-packages",
35
36 // Set the minimum host cpus to 8, since otherwise builds or rust-analyzer
37 // will not work well.
38 "hostRequirements": { "cpus": 8 }
39
40 // TODO: mounts for local flowey-out/artifacts?
41}
42