38 lines
1.0 KiB
JSON
38 lines
1.0 KiB
JSON
{
|
|
"name": "ansible-dev-container-podman",
|
|
"image": "ghcr.io/ansible/community-ansible-dev-tools:latest",
|
|
"containerUser": "root",
|
|
"containerEnv": {
|
|
"REGISTRY_AUTH_FILE": "/container-auth.json"
|
|
},
|
|
"runArgs": [
|
|
"--cap-add=CAP_MKNOD",
|
|
"--cap-add=NET_ADMIN",
|
|
"--cap-add=SYS_ADMIN",
|
|
"--cap-add=SYS_RESOURCE",
|
|
"--device",
|
|
"/dev/fuse",
|
|
"--security-opt",
|
|
"seccomp=unconfined",
|
|
"--security-opt",
|
|
"label=disable",
|
|
"--security-opt",
|
|
"apparmor=unconfined",
|
|
"--security-opt",
|
|
"unmask=/sys/fs/cgroup",
|
|
"--userns=host",
|
|
"--hostname=ansible-dev-container",
|
|
"--env-file",
|
|
".env"
|
|
],
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": ["redhat.ansible","redhat.vscode-redhat-account"]
|
|
}
|
|
},
|
|
"mounts": [
|
|
"source=${localEnv:XDG_RUNTIME_DIR}/containers/auth.json,target=/container-auth.json,type=bind,consistency=cached",
|
|
"source=${localEnv:HOME}/Dev/inventories/toallab-inventory,target=/workspaces/inventory,type=bind,consistency=cached",
|
|
]
|
|
}
|