Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 31 additions & 9 deletions editors-definitions/che-code-sshd-insiders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,26 @@ metadata:
</defs>
</svg>

commands:
- id: start-sshd
exec:
component: che-code-sshd
commandLine: ( /sshd/sshd.start & )
events:
postStart:
- start-sshd
components:
- name: che-code-sshd
- name: che-code-sshd-page
container:
image: quay.io/che-incubator/che-code-sshd:insiders
memoryLimit: 4096Mi
memoryRequest: 256Mi
cpuLimit: 1000m
cpuRequest: 500m
memoryLimit: 256Mi
memoryRequest: 32Mi
cpuLimit: 500m
cpuRequest: 30m
command:
- sh
- -c
- "nohup /entrypoint.sh & nohup /sshd.start & pushd /opt/www/ && nohup node /opt/www/server.js & tail -f /dev/null"
- "cp /usr/sbin/sshd /usr/bin/ssh-keygen /usr/lib64/libnss_wrapper.so /etc/ssh/sshd_config /sshd.start /sshd/ & while [ ! -e /sshd/username ]; do sleep 1s; done; pushd /opt/www/ && exec node /opt/www/server.js"
endpoints:
- name: che-code-sshd
attributes:
Expand All @@ -99,10 +107,24 @@ components:
secure: true
protocol: https
volumeMounts:
- name: m2
path: /home/user/.m2
- name: sshd-folder
path: /sshd
attributes:
app.kubernetes.io/component: che-code-sshd-page
app.kubernetes.io/part-of: che-code-server.eclipse.org
- name: che-code-sshd
container:
image: quay.io/che-incubator/che-code-sshd:insiders
memoryLimit: 4096Mi
memoryRequest: 256Mi
cpuLimit: 1000m
cpuRequest: 500m
volumeMounts:
- name: sshd-folder
path: /sshd
attributes:
app.kubernetes.io/component: che-code-sshd
app.kubernetes.io/part-of: che-code-server.eclipse.org
- name: m2
controller.devfile.io/container-contribution: true
- name: sshd-folder
volume: {}
40 changes: 31 additions & 9 deletions editors-definitions/che-code-sshd-next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,26 @@ metadata:
</defs>
</svg>

commands:
- id: start-sshd
exec:
component: che-code-sshd
commandLine: ( /sshd/sshd.start & )
events:
postStart:
- start-sshd
components:
- name: che-code-sshd
- name: che-code-sshd-page
container:
image: quay.io/che-incubator/che-code-sshd:next
memoryLimit: 4096Mi
memoryRequest: 256Mi
cpuLimit: 1000m
cpuRequest: 500m
memoryLimit: 256Mi
memoryRequest: 32Mi
cpuLimit: 500m
cpuRequest: 30m
command:
- sh
- -c
- "nohup /entrypoint.sh & nohup /sshd.start & pushd /opt/www/ && nohup node /opt/www/server.js & tail -f /dev/null"
- "cp /usr/sbin/sshd /usr/bin/ssh-keygen /usr/lib64/libnss_wrapper.so /etc/ssh/sshd_config /sshd.start /sshd/ & while [ ! -e /sshd/username ]; do sleep 1s; done; pushd /opt/www/ && exec node /opt/www/server.js"
endpoints:
- name: che-code-sshd
attributes:
Expand All @@ -99,10 +107,24 @@ components:
secure: true
protocol: https
volumeMounts:
- name: m2
path: /home/user/.m2
- name: sshd-folder
path: /sshd
attributes:
app.kubernetes.io/component: che-code-sshd-page
app.kubernetes.io/part-of: che-code-server.eclipse.org
- name: che-code-sshd
container:
image: quay.io/che-incubator/che-code-sshd:next
memoryLimit: 4096Mi
memoryRequest: 256Mi
cpuLimit: 1000m
cpuRequest: 500m
volumeMounts:
- name: sshd-folder
path: /sshd
attributes:
app.kubernetes.io/component: che-code-sshd
app.kubernetes.io/part-of: che-code-server.eclipse.org
- name: m2
controller.devfile.io/container-contribution: true
- name: sshd-folder
volume: {}
Loading