33 lines
1.6 KiB
JSON
33 lines
1.6 KiB
JSON
|
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
|
||
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.128.0/containers/azure-ansible
|
||
|
{
|
||
|
"name": "Ansible Workspace",
|
||
|
"dockerFile": "Dockerfile",
|
||
|
//"image": "docker.pkg.github.com/jtom38/docker-ansible/ansible:2.10.3",
|
||
|
//"image":"jtom38/ansible:2.10.3",
|
||
|
"mounts": [
|
||
|
// [Optional] Anisble Collections: Uncomment if you want to mount your local .ansible/collections folder.
|
||
|
// "source=${localEnv:HOME}${localEnv:USERPROFILE}/.ansible/collections,target=/root/.ansible/collections,type=bind,consistency=cached",
|
||
|
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
|
||
|
],
|
||
|
// Set *default* container specific settings.json values on container create.
|
||
|
"settings": {
|
||
|
"terminal.integrated.shell.linux": "/bin/bash"
|
||
|
},
|
||
|
// Add the IDs of extensions you want installed when the container is created.
|
||
|
"extensions": [
|
||
|
"vscoss.vscode-ansible",
|
||
|
"redhat.vscode-yaml",
|
||
|
"ms-vscode.azurecli",
|
||
|
"ms-azuretools.vscode-docker",
|
||
|
"samuelcolvin.jinjahtml"
|
||
|
],
|
||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||
|
// "forwardPorts": [],
|
||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||
|
"postCreateCommand": "ansible --version && ansible-galaxy install -r requirements.yml",
|
||
|
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
|
||
|
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
|
||
|
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
||
|
// "remoteUser": "vscode"
|
||
|
}
|