add devfile
This commit is contained in:
parent
7cbc59619c
commit
572d1a424b
1 changed files with 42 additions and 0 deletions
42
devfile.yaml
Normal file
42
devfile.yaml
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue