Skip to content

Commit 85da9dd

Browse files
Merge remote-tracking branch 'eclipse/main'
2 parents 5fc393b + 751c7fb commit 85da9dd

30 files changed

Lines changed: 436 additions & 213 deletions

.github/workflows/image-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,5 +198,5 @@ jobs:
198198
run: |
199199
SHORT_SHA1=$(git rev-parse --short=7 HEAD)
200200
docker buildx build --platform linux/amd64 -f build/dockerfiles/dev.Dockerfile --push -t quay.io/che-incubator/che-code-dev:insiders -t quay.io/che-incubator/che-code-dev:next -t quay.io/che-incubator/che-code-dev:insiders-${SHORT_SHA1} .
201-
docker buildx build --platform linux/amd64 -f build/dockerfiles/dev.sshd.Dockerfile --push -t quay.io/che-incubator/che-code-sshd:insiders -t quay.io/che-incubator/che-code-sshd:next -t quay.io/che-incubator/che-code-sshd:insiders-${SHORT_SHA1} .
201+
docker buildx build --platform linux/amd64 -f build/dockerfiles/assembly.sshd.Dockerfile --push -t quay.io/che-incubator/che-code-sshd:insiders -t quay.io/che-incubator/che-code-sshd:next -t quay.io/che-incubator/che-code-sshd:insiders-${SHORT_SHA1} .
202202

.rebase/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
The file to keep a list of changed files which will potentionaly help to resolve rebase conflicts.
44

5+
#### @RomanNikitenko
6+
https://github.com/che-incubator/che-code/pull/655
7+
8+
- code/src/vs/platform/shell/node/shellEnv.ts
9+
- code/src/vs/server/node/remoteTerminalChannel.ts
10+
- code/src/vs/server/node/extensionHostConnection.ts
11+
---
12+
13+
#### @sbouchet
14+
https://github.com/che-incubator/che-code/pull/647
15+
16+
- code/test/monaco/package.json
17+
- code/build/package.json
18+
- code/package.json
19+
---
20+
521
#### @RomanNikitenko
622
https://github.com/che-incubator/che-code/pull/617
723

.rebase/add/code/build/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"jsonwebtoken": {
77
"jws": "^3.2.3"
88
},
9-
"qs": "6.14.1"
9+
"qs": "6.14.1",
10+
"lodash": "^4.17.23"
1011
}
1112
}

.rebase/add/code/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
},
3232
"@azure/core-http": {
3333
"form-data": "4.0.4"
34-
}
34+
},
35+
"lodash": "^4.17.23"
3536
}
3637
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"overrides": {
3+
"lodash": "^4.17.23"
4+
}
5+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[
2+
{
3+
"from": "import { clamp } from '../../../base/common/numbers.js';",
4+
"by": "import { clamp } from '../../../base/common/numbers.js';\\\nimport { sanitizeLdLibraryPathInEnvironment, shouldStripLdLibraryPathForShellEnv } from '../../che/utils.js';"
5+
},
6+
{
7+
"from": "const env = {",
8+
"by": "const env: NodeJS.ProcessEnv = {"
9+
},
10+
{
11+
"from": "delete env['VSCODE_RESOLVING_ENVIRONMENT'];",
12+
"by": "delete env['VSCODE_RESOLVING_ENVIRONMENT'];\\\n\t\t\t\tif (shouldStripLdLibraryPathForShellEnv()) {\\\n\t\t\t\t\tsanitizeLdLibraryPathInEnvironment(env, message => logService.trace(message), 'shellEnv');\\\n\t\t\t\t}"
13+
}
14+
]

.rebase/replace/code/src/vs/server/node/extensionHostConnection.ts.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
3-
"from": "import { getNLSConfiguration } from 'vs/server/node/remoteLanguagePacks';",
4-
"by": "import { getNLSConfiguration } from 'vs/server/node/remoteLanguagePacks';\\\nimport { getResolvedPathEnvVar } from 'vs/server/node/che/utils';"
3+
"from": "import { getNLSConfiguration } from './remoteLanguagePacks.js';",
4+
"by": "import { getNLSConfiguration } from './remoteLanguagePacks.js';\\\nimport { getResolvedPathEnvVar } from '../../platform/che/utils.js';"
55
},
66
{
77
"from": "setCaseInsensitive(env, 'PATH', PATH);",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"from": "import { shouldUseEnvironmentVariableCollection } from '../../platform/terminal/common/terminalEnvironment.js';",
4+
"by": "import { shouldUseEnvironmentVariableCollection } from '../../platform/terminal/common/terminalEnvironment.js';\\\nimport { sanitizeLdLibraryPathInEnvironment, shouldStripLdLibraryPathForTerminal } from '../../platform/che/utils.js';"
5+
},
6+
{
7+
"from": "const baseEnv = await buildUserEnvironment(args.resolverEnv, !!args.shellLaunchConfig.useShellEnvironment, platform.language, this._environmentService, this._logService, this._configurationService);",
8+
"by": "const baseEnv = await buildUserEnvironment(args.resolverEnv, !!args.shellLaunchConfig.useShellEnvironment, platform.language, this._environmentService, this._logService, this._configurationService);\\\n\t\tif (shouldStripLdLibraryPathForTerminal()) {\\\n\t\t\tsanitizeLdLibraryPathInEnvironment(baseEnv, message => this._logService.trace(message), 'remoteTerminalChannel:baseEnv');\\\n\t\t}"
9+
},
10+
{
11+
"from": "// Apply extension environment variable collections to the environment",
12+
"by": "if (shouldStripLdLibraryPathForTerminal()) {\\\n\t\t\tsanitizeLdLibraryPathInEnvironment(env, message => this._logService.trace(message), 'remoteTerminalChannel:terminalEnv');\\\n\t\t}\\\n\\\n\t\t// Apply extension environment variable collections to the environment"
13+
},
14+
{
15+
"from": "return { ...process.env };",
16+
"by": "const env: platform.IProcessEnvironment = { ...process.env };\\\n\t\tif (shouldStripLdLibraryPathForTerminal()) {\\\n\t\t\tsanitizeLdLibraryPathInEnvironment(env, message => this._logService.trace(message), 'remoteTerminalChannel:getEnvironment');\\\n\t\t}\\\n\t\treturn env;"
17+
}
18+
]
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copyright (c) 2025 Red Hat, Inc.
2+
# This program and the accompanying materials are made
3+
# available under the terms of the Eclipse Public License 2.0
4+
# which is available at https://www.eclipse.org/legal/epl-2.0/
5+
#
6+
# SPDX-License-Identifier: EPL-2.0
7+
#
8+
9+
# UBI 8
10+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10 as sshd-ubi8
11+
12+
USER 0
13+
14+
RUN microdnf -y install libsecret openssh-server nss_wrapper-libs \
15+
gzip tar which && \
16+
microdnf -y clean all --enablerepo='*'
17+
18+
# UBI 9/10
19+
FROM registry.access.redhat.com/ubi9/nodejs-20-minimal:9.7
20+
21+
USER 0
22+
23+
RUN microdnf -y install libsecret openssh-server nss_wrapper-libs && \
24+
microdnf -y clean all --enablerepo='*'
25+
26+
RUN mkdir -p /sshd-staging/ubi8 /sshd-staging/ubi9
27+
# UBI 8
28+
COPY --from=sshd-ubi8 /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 /sshd-staging/ubi8/
29+
# UBI 9/10
30+
RUN 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 /sshd-staging/ubi9/
31+
32+
# sshd_config is root:root 600
33+
RUN chmod 644 /etc/ssh/sshd_config
34+
RUN cp /etc/ssh/sshd_config /sshd-staging/
35+
36+
# Add script to start and stop the service
37+
COPY --chown=0:0 /build/scripts/sshd.init /build/scripts/sshd.start /sshd-staging/
38+
39+
RUN mkdir /opt/www
40+
COPY /build/scripts/code-sshd-page/* /opt/www/
41+
42+
# Lock down /etc/passwd until fixed in UDI
43+
RUN chmod 644 /etc/passwd
44+
45+
EXPOSE 2022 3400
46+
47+
USER 10001

build/dockerfiles/dev.sshd.Dockerfile

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)