add devfile

This commit is contained in:
Cedric Girard 2021-07-06 16:08:09 +02:00
parent 7cbc59619c
commit 572d1a424b
1 changed files with 42 additions and 0 deletions

42
devfile.yaml Normal file
View File

@ -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"
}
]
}