Compare commits
3 Commits
wtome-devs
...
jce/devcon
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e84df3f17 | ||
|
|
66ad419501 | ||
|
|
0e0c76e54a |
25
.devcontainer/devcontainer.json
Normal file
25
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"name": "ansible-dev-container-codespaces",
|
||||||
|
"image": "registry.redhat.io/ansible-automation-platform-25/ansible-dev-tools-rhel8:latest",
|
||||||
|
"containerUser": "root",
|
||||||
|
"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","redhat.vscode-redhat-account"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"postCreateCommand": "sh .devcontainers/postCreateCommand.sh"
|
||||||
|
}
|
||||||
24
.devcontainer/docker/devcontainer.json
Normal file
24
.devcontainer/docker/devcontainer.json
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "ansible-dev-container-docker",
|
||||||
|
"image": "registry.redhat.io/ansible-automation-platform-25/ansible-dev-tools-rhel8:latest",
|
||||||
|
"containerUser": "root",
|
||||||
|
"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","redhat.vscode-redhat-account"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
28
.devcontainer/podman/devcontainer.json
Normal file
28
.devcontainer/podman/devcontainer.json
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "ansible-dev-container-podman",
|
||||||
|
"image": "registry.redhat.io/ansible-automation-platform-25/ansible-dev-tools-rhel8:latest",
|
||||||
|
"containerUser": "root",
|
||||||
|
"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"
|
||||||
|
],
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": ["redhat.ansible","redhat.vscode-redhat-account"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3
.devcontainer/postCreateCommand.sh
Normal file
3
.devcontainer/postCreateCommand.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
microdnf -y install git-lfs
|
||||||
|
pip3 install pre-commit
|
||||||
@@ -1,16 +1,13 @@
|
|||||||
---
|
---
|
||||||
schemaVersion: 2.2.2
|
schemaVersion: 2.2.0
|
||||||
metadata:
|
metadata:
|
||||||
name: product-demos
|
name: product-demos
|
||||||
components:
|
components:
|
||||||
- name: tooling-container
|
- name: product-demos-ee
|
||||||
container:
|
container:
|
||||||
image: quay.io/ansible-product-demos/apd-ee-25 # ghcr.io/ansible/ansible-devspaces:latest
|
image: quay.io/mloriedo/ansible-creator-ee:latest # workaround for https://github.com/eclipse/che/issues/21778
|
||||||
memoryRequest: 256M
|
memoryRequest: 256M
|
||||||
memoryLimit: 5Gi
|
memoryLimit: 5Gi
|
||||||
cpuRequest: 250m
|
cpuRequest: 250m
|
||||||
cpuLimit: 2000m
|
cpuLimit: 2000m
|
||||||
args:
|
args: ['tail', '-f', '/dev/null']
|
||||||
- 'tail'
|
|
||||||
- '-f'
|
|
||||||
- '/dev/null'
|
|
||||||
|
|||||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"editor.renderWhitespace": "all"
|
"editor.renderWhitespace": "all",
|
||||||
|
"files.insertFinalNewline": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,6 +90,13 @@
|
|||||||
containerBuildConfiguration:
|
containerBuildConfiguration:
|
||||||
openShiftSecurityContextConstraint: container-build
|
openShiftSecurityContextConstraint: container-build
|
||||||
disableContainerBuildCapabilities: true
|
disableContainerBuildCapabilities: true
|
||||||
|
defaultEditor: che-incubator/che-code/insiders
|
||||||
|
defaultComponents:
|
||||||
|
- container:
|
||||||
|
image: >-
|
||||||
|
registry.redhat.io/devspaces/udi-rhel8@sha256:aa39ede33bcbda6aa2723d271c79ab8d8fd388c7dfcbc3d4ece745b7e9c84193
|
||||||
|
sourceMapping: /projects
|
||||||
|
name: universal-developer-image
|
||||||
defaultNamespace:
|
defaultNamespace:
|
||||||
autoProvision: true
|
autoProvision: true
|
||||||
template: <username>-devspaces
|
template: <username>-devspaces
|
||||||
|
|||||||
Reference in New Issue
Block a user