mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
7026174458
This commit adds a GitHub Workflow to prebuild the dev container file present at .devcontainer/devcontainer.json. This prebuilt image is pushed to GitHub Container Registry (ghcr). An additional devcontainer.json is added consuming that image. This dev container can be selected in editors that process dev containers (ie GitHub Codespaces), to speed up time to editor.
40 lines
1.3 KiB
JSON
40 lines
1.3 KiB
JSON
{
|
|
"name": "SerenityOS",
|
|
"image": "mcr.microsoft.com/devcontainers/base:jammy",
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/implementors/features.
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/github-cli:1": {},
|
|
"ghcr.io/devcontainers-contrib/features/pre-commit:1": {},
|
|
"./features/serenity": {
|
|
"llvm_version": 15,
|
|
"enable_ladybird": true,
|
|
"enable_serenity": true
|
|
},
|
|
"ghcr.io/devcontainers/features/desktop-lite": {
|
|
"password": "vscode",
|
|
"webPort": "6080",
|
|
"vncPort": "5901"
|
|
}
|
|
},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
"forwardPorts": [6080, 5901],
|
|
"portsAttributes": {
|
|
"5901": {
|
|
"label": "VNC"
|
|
},
|
|
"6080": {
|
|
"label": "Web VNC"
|
|
}
|
|
},
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
"postCreateCommand": "pre-commit install; pre-commit install --hook-type commit-msg"
|
|
|
|
// Configure tool-specific properties.
|
|
// "customizations": {},
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root",
|
|
}
|