mirror of
https://github.com/coreos/coreos-assembler.git
synced 2026-02-05 09:44:53 +01:00
Add support for devcontainers[1]
This allows VSCode or any other devconatainer compliant IDE to automatically spin up a container containing the necessary dependencies. This uses quay.io/coreos-assembler/coreos-assembler. Requires the remotecontainer extension to be installed on VSCode [2] With the flatpak version, set up podman remote fist [3] [1] https://containers.dev/ [2] https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers [3] https://gist.github.com/FilBot3/4424d312a87f7b4178722d3b5eb20212
This commit is contained in:
committed by
Jean-Baptiste Trystram
parent
a3b8d8f48c
commit
46b971389f
17
.devcontainer.json
Normal file
17
.devcontainer.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"image": "quay.io/coreos-assembler/coreos-assembler",
|
||||
"workspaceMount": "",
|
||||
"workspaceFolder": "/srv",
|
||||
"runArgs": [
|
||||
"--volume=${localWorkspaceFolder}:/srv/:Z",
|
||||
"--uidmap=1000:0:1", "--uidmap=0:1:1000", "--uidmap=1001:1001:64536",
|
||||
"--device=/dev/kvm", "--device=/dev/fuse", "--security-opt=label=disable", "--privileged",
|
||||
"--tmpfs=/tmp", "-v=/var/tmp:/var/tmp"
|
||||
],
|
||||
"remoteUser": "builder",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": ["golang.Go", "ms-vsliveshare.vsliveshare"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user