Skip to content

Instantly share code, notes, and snippets.

@svor
Last active July 9, 2024 09:57
Show Gist options
  • Save svor/a56b1446b8b9c5c1ea9913b9b276b25d to your computer and use it in GitHub Desktop.
Save svor/a56b1446b8b9c5c1ea9913b9b276b25d to your computer and use it in GitHub Desktop.
schemaVersion: 2.1.0
metadata:
name: wildfly-demo
attributes:
controller.devfile.io/storage-type: ephemeral
projects:
- name: wildfly-cluster-demo
git:
remotes:
origin: "https://github.com/RanabirChakraborty/wildfly-cluster-demo.git"
components:
- name: tooling-container
container:
image: ghcr.io/ansible/ansible-workspace-env-reference:v24.6.3
memoryRequest: 256M
memoryLimit: 6Gi
cpuRequest: 250m
cpuLimit: 2000m
args: ['tail', '-f', '/dev/null']
env:
- name: 'ANSIBLE_COLLECTIONS_PATH'
value: '~/.ansible/collections:/usr/share/ansible/collections:/projects/ansible-devspaces-demo/collections'
commands:
- id: install-requirements
exec:
component: tooling-container
commandLine: "ansible-galaxy install -r molecule/default/requirements.yml"
workingDir: "${PROJECTS_ROOT}/wildfly-cluster-demo"
label: Install required collections.
events:
postStart:
- "install-requirements"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment