-
Notifications
You must be signed in to change notification settings - Fork 98
Add support for UBI 8 in che-code-sshd editor definition. #2088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,6 @@ metadata: | |
| - ssh | ||
| - CLI | ||
| - vscode | ||
| - Tech-Preview | ||
| attributes: | ||
| arch: | ||
| - x86_64 | ||
|
|
@@ -84,7 +83,9 @@ commands: | |
| events: | ||
| postStart: | ||
| - start-sshd | ||
|
|
||
| components: | ||
|
|
||
| - name: che-code-sshd-page | ||
| container: | ||
| image: quay.io/che-incubator/che-code-sshd:next | ||
|
|
@@ -95,7 +96,7 @@ components: | |
| command: | ||
| - sh | ||
| - -c | ||
| - "cp /usr/sbin/sshd /usr/bin/ssh-keygen /usr/bin/tar /usr/bin/gzip /usr/bin/which /usr/lib64/libnss_wrapper.so /usr/lib64/libpam.so.0 /usr/lib64/libeconf.so.0 /usr/lib64/libcrypt.so.2 /etc/ssh/sshd_config /sshd.start /sshd/ & while [ ! -e /sshd/username ]; do sleep 1s; done; pushd /opt/www/ && exec node /opt/www/server.js" | ||
| - "cp -rp /sshd-staging/. /sshd/; while [ ! -e /sshd/username ]; do sleep 1s; done; pushd /opt/www/ && exec node /opt/www/server.js" | ||
| endpoints: | ||
| - name: che-code-sshd | ||
| attributes: | ||
|
|
@@ -112,6 +113,7 @@ components: | |
| 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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this gets merged into the user-defined main container (ie. container-contribution is |
||
|
|
@@ -126,6 +128,7 @@ components: | |
| app.kubernetes.io/component: che-code-sshd | ||
| app.kubernetes.io/part-of: che-code-server.eclipse.org | ||
| controller.devfile.io/container-contribution: true | ||
|
|
||
| - name: sshd-folder | ||
| volume: {} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hiding this command in an in-container script (e.g.
startPage.sh),will allow modifying it without touching the editor definition YAML.
Do you think this is a good idea, @rgrunber ? 🤔
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree here. It also allows things to be reused more easily. This entire script belongs in a script somwhere at https://github.com/che-incubator/che-code/tree/main/build/scripts .
Update: I have a solution for this. Testing to confirm it works as expected..