Skip to content

Commit 3006018

Browse files
committed
fixup! update the definition
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
1 parent 87f49f2 commit 3006018

File tree

1 file changed

+38
-20
lines changed

1 file changed

+38
-20
lines changed

editors-definitions/che-web-terminal-latest.yaml

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,37 +43,55 @@ metadata:
4343
</rect>
4444
</svg>
4545
46+
commands:
47+
- id: init-ttyd-command
48+
apply:
49+
component: ttyd-injector
50+
events:
51+
preStart:
52+
- init-ttyd-command
4653
components:
47-
- name: web-terminal-runtime
54+
- name: ttyd-injector
4855
container:
49-
image: tsl0922/ttyd:latest
50-
mountSources: true
51-
args:
52-
- --port
53-
- "7681"
54-
- --writable
55-
- -w
56-
- /projects
57-
- /bin/bash
58-
memoryLimit: 1024Mi
59-
memoryRequest: 256Mi
56+
image: docker.io/tsl0922/ttyd:1.7.7-alpine
57+
command:
58+
- sh
59+
- -c
60+
- cp /usr/bin/ttyd /ttyd-vol/ttyd && chmod +x /ttyd-vol/ttyd
61+
volumeMounts:
62+
- name: ttyd-volume
63+
path: /ttyd-vol
64+
memoryLimit: 64Mi
65+
memoryRequest: 16Mi
6066
cpuLimit: 500m
6167
cpuRequest: 30m
68+
- name: ttyd-runtime
69+
attributes:
70+
app.kubernetes.io/component: web-terminal-runtime
71+
app.kubernetes.io/part-of: web-terminal.eclipse.org
72+
controller.devfile.io/container-contribution: true
73+
container:
74+
image: docker.io/tsl0922/ttyd:1.7.7-alpine
75+
memoryLimit: 128Mi
76+
memoryRequest: 32Mi
77+
cpuLimit: 500m
78+
cpuRequest: 30m
79+
volumeMounts:
80+
- name: ttyd-volume
81+
path: /ttyd-vol
6282
endpoints:
6383
- name: web-terminal
84+
targetPort: 7681
85+
exposure: public
86+
protocol: https
6487
attributes:
6588
type: main
6689
cookiesAuthEnabled: true
6790
discoverable: false
6891
urlRewriteSupported: true
69-
targetPort: 7681
70-
exposure: public
71-
secure: true
72-
protocol: https
73-
attributes:
74-
app.kubernetes.io/component: web-terminal-runtime
75-
app.kubernetes.io/part-of: web-terminal.eclipse.org
76-
controller.devfile.io/container-contribution: true
92+
- name: ttyd-volume
93+
volume:
94+
ephemeral: true
7795

7896
attributes:
7997
version: null

0 commit comments

Comments
 (0)