From 06ad796cea2b1b6ee9fb1ddcc9859deb9aa977d1 Mon Sep 17 00:00:00 2001 From: willtome Date: Tue, 24 Oct 2023 12:32:20 -0400 Subject: [PATCH] update devfile --- .devfile.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.devfile.yaml b/.devfile.yaml index 2b4277c..5da2c13 100644 --- a/.devfile.yaml +++ b/.devfile.yaml @@ -1,13 +1,25 @@ --- schemaVersion: 2.2.0 metadata: - name: product-demos + name: ansible-demo components: - - name: product-demos-ee + - name: tooling-container container: - image: quay.io/mloriedo/ansible-creator-ee:latest # workaround for https://github.com/eclipse/che/issues/21778 + image: quay.io/acme_corp/product-demos-ee:latest memoryRequest: 256M - memoryLimit: 5Gi + memoryLimit: 6Gi cpuRequest: 250m cpuLimit: 2000m args: ['tail', '-f', '/dev/null'] +commands: + - id: oc-install + exec: + commandLine: '/usr/local/bin/ansible-playbook ${PROJECT_SOURCE}/playbooks/install_oc.yml' + workingDir: ${PROJECT_SOURCE} + group: + kind: build + isDefault: true + component: tooling-container +events: + postStart: + - "oc-install"