diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..339f4f6 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "ms-python.python" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4f2529f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "internalConsole" + } + ] + } diff --git a/devfile.yaml b/devfile.yaml new file mode 100644 index 0000000..d638371 --- /dev/null +++ b/devfile.yaml @@ -0,0 +1,26 @@ +schemaVersion: 2.1.0 +metadata: + name: python-hello-world +attributes: + che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER +components: + - name: python + container: + image: quay.io/devfile/base-developer-image:ubi8-7bd4fe3 + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G +commands: + - id: run + exec: + label: "Run the application" + component: python + workingDir: ${PROJECTS_ROOT}/python-hello-world + commandLine: "python3 hello-world.py" + group: + kind: run