43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
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"
|
|
}
|
|
]
|
|
}
|
|
|