-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include devcontainer as part of collection scaffolding (#114)
Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
- Loading branch information
1 parent
57cfc24
commit e2327a1
Showing
6 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/ansible_creator/resources/new_collection/.devcontainer/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "ansible-dev-container-codespaces", | ||
"image": "ghcr.io/ansible/community-ansible-dev-tools-container:latest", | ||
"containerUser": "podman", | ||
"runArgs": [ | ||
"--security-opt", | ||
"seccomp=unconfined", | ||
"--security-opt", | ||
"label=disable", | ||
"--cap-add=SYS_ADMIN", | ||
"--cap-add=SYS_RESOURCE", | ||
"--device", | ||
"/dev/fuse", | ||
"--security-opt", | ||
"apparmor=unconfined", | ||
"--hostname=ansible-dev-container" | ||
], | ||
"updateRemoteUserUID": true, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["redhat.ansible"] | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/ansible_creator/resources/new_collection/.devcontainer/docker/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "ansible-dev-container-docker", | ||
"image": "ghcr.io/ansible/community-ansible-dev-tools-container:latest", | ||
"containerUser": "podman", | ||
"runArgs": [ | ||
"--security-opt", | ||
"seccomp=unconfined", | ||
"--security-opt", | ||
"label=disable", | ||
"--cap-add=SYS_ADMIN", | ||
"--cap-add=SYS_RESOURCE", | ||
"--device", | ||
"/dev/fuse", | ||
"--security-opt", | ||
"apparmor=unconfined", | ||
"--hostname=ansible-dev-container" | ||
], | ||
"updateRemoteUserUID": true, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["redhat.ansible"] | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/ansible_creator/resources/new_collection/.devcontainer/podman/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "ansible-dev-container-podman", | ||
"image": "ghcr.io/ansible/community-ansible-dev-tools-container:latest", | ||
"containerUser": "podman", | ||
"runArgs": [ | ||
"--security-opt", | ||
"seccomp=unconfined", | ||
"--security-opt", | ||
"label=disable", | ||
"--cap-add=SYS_ADMIN", | ||
"--cap-add=SYS_RESOURCE", | ||
"--device", | ||
"/dev/fuse", | ||
"--security-opt", | ||
"apparmor=unconfined", | ||
"--userns=keep-id:uid=1000,gid=1000", | ||
"--hostname=ansible-dev-container" | ||
], | ||
"updateRemoteUserUID": true, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["redhat.ansible"] | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
tests/fixtures/collection/testorg/testcol/.devcontainer/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "ansible-dev-container-codespaces", | ||
"image": "ghcr.io/ansible/community-ansible-dev-tools-container:latest", | ||
"containerUser": "podman", | ||
"runArgs": [ | ||
"--security-opt", | ||
"seccomp=unconfined", | ||
"--security-opt", | ||
"label=disable", | ||
"--cap-add=SYS_ADMIN", | ||
"--cap-add=SYS_RESOURCE", | ||
"--device", | ||
"/dev/fuse", | ||
"--security-opt", | ||
"apparmor=unconfined", | ||
"--hostname=ansible-dev-container" | ||
], | ||
"updateRemoteUserUID": true, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["redhat.ansible"] | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
tests/fixtures/collection/testorg/testcol/.devcontainer/docker/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "ansible-dev-container-docker", | ||
"image": "ghcr.io/ansible/community-ansible-dev-tools-container:latest", | ||
"containerUser": "podman", | ||
"runArgs": [ | ||
"--security-opt", | ||
"seccomp=unconfined", | ||
"--security-opt", | ||
"label=disable", | ||
"--cap-add=SYS_ADMIN", | ||
"--cap-add=SYS_RESOURCE", | ||
"--device", | ||
"/dev/fuse", | ||
"--security-opt", | ||
"apparmor=unconfined", | ||
"--hostname=ansible-dev-container" | ||
], | ||
"updateRemoteUserUID": true, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["redhat.ansible"] | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
tests/fixtures/collection/testorg/testcol/.devcontainer/podman/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "ansible-dev-container-podman", | ||
"image": "ghcr.io/ansible/community-ansible-dev-tools-container:latest", | ||
"containerUser": "podman", | ||
"runArgs": [ | ||
"--security-opt", | ||
"seccomp=unconfined", | ||
"--security-opt", | ||
"label=disable", | ||
"--cap-add=SYS_ADMIN", | ||
"--cap-add=SYS_RESOURCE", | ||
"--device", | ||
"/dev/fuse", | ||
"--security-opt", | ||
"apparmor=unconfined", | ||
"--userns=keep-id:uid=1000,gid=1000", | ||
"--hostname=ansible-dev-container" | ||
], | ||
"updateRemoteUserUID": true, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["redhat.ansible"] | ||
} | ||
} | ||
} |