Skip to content

Commit

Permalink
Update devfile.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalvankar authored Feb 9, 2023
1 parent 879ec3b commit ab81f9f
Showing 1 changed file with 107 additions and 34 deletions.
141 changes: 107 additions & 34 deletions devfile.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,121 @@
schemaVersion: 2.1.0
metadata:
name: python-hello-world-nm
name: quarkus-quickstart
namespace: admin-devspaces
attributes:
controller.devfile.io/devworkspace-config:
name: devworkspace-config
namespace: devspaces-demo
controller.devfile.io/storage-type: per-user
projects:
- name: python-hello-world
git:
remotes:
origin: 'https://github.com/nmalvankar/devspaces.git'
- name: quarkus-quickstarts
zip:
location: 'http://devfile-registry.devspaces-demo.svc:8080/resources/v2/quarkus-quickstarts.zip'
components:
- attributes:
app.kubernetes.io/name: python
che-theia.eclipse.org/vscode-extensions:
- 'relative:extension/resources/github_com/microsoft/vscode-python/releases/download/2020_7_94776/ms-python-release.vsix'
che-theia.eclipse.org/vscode-preferences:
python.globalModuleInstallation: true
che-code.eclipse.org/contribute-cpuLimit: true
che-code.eclipse.org/contribute-cpuRequest: true
che-code.eclipse.org/contribute-endpoint/che-code: 3100
che-code.eclipse.org/contribute-endpoint/code-redirect-1: 13131
che-code.eclipse.org/contribute-endpoint/code-redirect-2: 13132
che-code.eclipse.org/contribute-endpoint/code-redirect-3: 13133
che-code.eclipse.org/contribute-entry-point: true
che-code.eclipse.org/contribute-memoryLimit: true
che-code.eclipse.org/contribute-memoryRequest: true
che-code.eclipse.org/contribute-volume-mount/checode: /checode
che-code.eclipse.org/contributed-container: tools
che-code.eclipse.org/original-memoryLimit: 4G
container:
args:
- sh
- '-c'
- '${PLUGIN_REMOTE_ENDPOINT_EXECUTABLE}'
# env:
# - name: PLUGIN_REMOTE_ENDPOINT_EXECUTABLE
# value: /remote-endpoint/plugin-remote-endpoint
# - name: THEIA_PLUGINS
# value: 'local-dir:///plugins/sidecars/python'
# - name: CHE_DASHBOARD_URL
# value: 'https://devspaces.apps.cluster-gvpvj.gvpvj.sandbox1192.opentlc.com'
# - name: CHE_PLUGIN_REGISTRY_URL
# value: 'https://devspaces.apps.cluster-gvpvj.gvpvj.sandbox1192.opentlc.com/plugin-registry/v3'
# - name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
# value: 'http://plugin-registry.devspaces-demo.svc:8080/v3'
image: 'registry.redhat.io/devspaces/udi-rhel8@sha256:d55549aad15742f6f7310da0c7abc1e65dd5d3ad2e3efb8fbf414cf91b9efac7'
memoryLimit: 2G
command:
- /checode/entrypoint-volume.sh
cpuLimit: 500m
cpuRequest: 30m
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: hello-greeting-endpoint
path: /hello/greeting/devspaces-user
protocol: http
targetPort: 8080
- attributes:
contributed-by: che-code.eclipse.org
cookiesAuthEnabled: true
discoverable: false
type: main
urlRewriteSupported: true
exposure: public
name: che-code
path: '?tkn=eclipse-che'
protocol: https
secure: false
targetPort: 3100
- attributes:
contributed-by: che-code.eclipse.org
discoverable: false
urlRewriteSupported: false
exposure: public
name: code-redirect-1
protocol: http
targetPort: 13131
- attributes:
contributed-by: che-code.eclipse.org
discoverable: false
urlRewriteSupported: false
exposure: public
name: code-redirect-2
protocol: http
targetPort: 13132
- attributes:
contributed-by: che-code.eclipse.org
discoverable: false
urlRewriteSupported: false
exposure: public
name: code-redirect-3
protocol: http
targetPort: 13133
env:
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0
- name: CHE_DASHBOARD_URL
value: 'https://devspaces.apps.cluster-sw8bq.sw8bq.sandbox3102.opentlc.com'
- name: CHE_PLUGIN_REGISTRY_URL
value: 'https://devspaces.apps.cluster-sw8bq.sw8bq.sandbox3102.opentlc.com/plugin-registry/v3'
- name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
value: 'http://plugin-registry.devspaces-demo.svc:8080/v3'
- name: OPENVSX_REGISTRY_URL
value: 'https://open-vsx.org'
image: 'registry.redhat.io/devspaces/udi-rhel8@sha256:8de469cc9131a42092bd66e0f27a52bbc9b9a449235abf5b900d172a1bd3c985'
memoryLimit: 5.07G
memoryRequest: 256Mi
mountSources: true
sourceMapping: /projects
name: python
- name: venv
volumeMounts:
- name: m2
path: /home/user/.m2
- name: checode
path: /checode
name: tools
- name: m2
volume:
size: 1G
commands:
- exec:
commandLine: python -m venv .venv && . .venv/bin/activate && python hello-world.py
component: python
commandLine: mvn package
component: tools
group:
isDefault: true
kind: build
workingDir: '${PROJECTS_ROOT}/quarkus-quickstarts/getting-started'
id: 1-package
- exec:
commandLine: 'mvn compile quarkus:dev'
component: tools
group:
isDefault: true
kind: run
label: Run the application
workingDir: '${PROJECTS_ROOT}/python-hello-world'
id: run
label: Start Development mode (Hot reload + debug)
workingDir: '${PROJECTS_ROOT}/quarkus-quickstarts/getting-started'
id: 2-startdev

0 comments on commit ab81f9f

Please sign in to comment.