-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevfile.yaml
More file actions
70 lines (63 loc) · 1.85 KB
/
Copy pathdevfile.yaml
File metadata and controls
70 lines (63 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# devfile.yaml — Eclipse Che workspace with custom image
#
# Uses the pre-built opencode-dev image for fast workspace startup.
# All UF tools are baked into the image — no postStart installation.
#
# Devfile 2.2.0 specification: https://devfile.io/docs/2.2.0/
# Requirements: FR-009, FR-011
schemaVersion: 2.2.0
metadata:
name: unbound-force-workspace
version: 1.0.0
components:
- name: opencode-dev
container:
image: quay.io/unbound-force/opencode-dev:latest
memoryLimit: 8Gi
cpuLimit: "4"
mountSources: true
env:
# Ollama endpoint for Dewey semantic search. Empty = keyword-only.
# Local Podman: http://host.containers.internal:11434
# CDE on K8s: set via Che user preferences or K8s secret
- name: DEWEY_EMBEDDING_ENDPOINT
value: ""
endpoints:
- name: opencode-server
targetPort: 4096
exposure: internal
- name: demo-http
targetPort: 3000
exposure: public
protocol: https
- name: demo-api
targetPort: 8080
exposure: public
protocol: https
- name: demo-alt
targetPort: 8443
exposure: public
protocol: https
commands:
- id: start-server
exec:
component: opencode-dev
commandLine: "opencode serve --port 4096 --hostname 0.0.0.0"
workingDir: /projects
- id: init-workspace
exec:
component: opencode-dev
commandLine: "uf init"
workingDir: /projects
# Composite command enforces sequential execution order.
# postStart events are NOT guaranteed sequential per the
# devfile spec — a composite with parallel: false is required.
- id: post-start-sequence
composite:
commands:
- init-workspace
- start-server
parallel: false
events:
postStart:
- post-start-sequence