From be271f5b47026b0eefc576f837281d4501dc8ab3 Mon Sep 17 00:00:00 2001 From: Stephanie Date: Fri, 7 Jan 2022 14:50:25 -0500 Subject: [PATCH] use parent stack Signed-off-by: Stephanie --- devfile.yaml | 37 +++---------------------------------- 1 file changed, 3 insertions(+), 34 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index f7742eecb9..88be97ae72 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -6,11 +6,9 @@ metadata: supportUrl: https://github.com/devfile-samples/devfile-support#support-information attributes: alpha.dockerimage-port: 8081 -starterProjects: - - name: python-example - git: - remotes: - origin: https://github.com/odo-devfiles/python-ex +parent: + id: python + registryUrl: "https://registry.devfile.io" components: - name: outerloop-build image: @@ -22,36 +20,7 @@ components: - name: outerloop-deploy kubernetes: uri: outerloop-deploy.yaml - - name: py-web - container: - image: quay.io/eclipse/che-python-3.7:nightly - mountSources: true - endpoints: - - name: web - targetPort: 8080 commands: - - id: pip-install-requirements - exec: - commandLine: pip install --user -r requirements.txt - group: - kind: build - isDefault: true - component: py-web - - id: run-app - exec: - commandLine: "python app.py" - workingDir: ${PROJECTS_ROOT} - component: py-web - group: - kind: run - isDefault: true - - id: debugpy - exec: - commandLine: "pip install --user debugpy && python -m debugpy --listen 0.0.0.0:${DEBUG_PORT} app.py" - workingDir: ${PROJECTS_ROOT} - component: py-web - group: - kind: debug - id: build-image apply: component: outerloop-build