From 572d1a424bb59dfb7caf455d76556e147457b968 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Tue, 6 Jul 2021 16:08:09 +0200 Subject: [PATCH] add devfile --- devfile.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 devfile.yaml diff --git a/devfile.yaml b/devfile.yaml new file mode 100644 index 0000000..86db68d --- /dev/null +++ b/devfile.yaml @@ -0,0 +1,42 @@ +apiVersion: 1.0.0 +metadata: + generateName: python- +projects: + - name: python-hello-world + source: + type: git + location: 'https://git.valinor.fr/X-dark/django-ex.git' +components: + - type: chePlugin + id: ms-python/python/latest + preferences: + python.globalModuleInstallation: true + - type: dockerimage + alias: python + image: 'registry.redhat.io/codeready-workspaces/plugin-java8-rhel8@sha256:bb8ec9c4964e39b335be589f027c4b5ec866fe5f742c7181473e70fff717655d' + memoryLimit: 512Mi + mountSources: true +commands: + - name: 1. Run + actions: + - type: exec + component: python + command: python hello-world.py + workdir: '${CHE_PROJECTS_ROOT}/python-hello-world' + - name: Debug current file + actions: + - type: vscode-launch + referenceContent: | + { + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "internalConsole" + } + ] + } +