Skip to content

Commit 46e6f82

Browse files
authored
Merge pull request #529 from jmtd/OPENJDK-2805-s2i-scripts-path-ubi9
[OPENJDK-2805] Symlink /usr/libexec/s2i
2 parents 778f62f + 716c411 commit 46e6f82

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@ubi9/openjdk-11
22
@ubi9/openjdk-17
33
@ubi9/openjdk-21
4-
Feature: Openshift OpenJDK Runtime tests (OPENJDK-474)
4+
Feature: Openshift OpenJDK Runtime tests (OPENJDK-474, OPENJDK-2805)
55

66
Scenario: Ensure JAVA_ARGS is passed through, diagnostic options work correctly, JVM_ARGS not present in run script, OPENJDK-474 JAVA_ARGS not repeated
77
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications.git from undertow-servlet
@@ -10,5 +10,8 @@ Feature: Openshift OpenJDK Runtime tests (OPENJDK-474)
1010
| JAVA_DIAGNOSTICS | true |
1111
Then container log should contain /deployments/undertow-servlet.jar unique
1212
And container log should contain -XX:NativeMemoryTracking=summary
13+
And file /usr/local/s2i/run should exist
1314
And file /usr/local/s2i/run should not contain JVM_ARGS
15+
And file /usr/libexec/s2i/run should exist
16+
And file /usr/libexec/s2i/run should not contain JVM_ARGS
1417
And container log should not contain unique unique

modules/s2i/core/configure.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ mkdir -p /usr/local/s2i \
1717
&& chmod 775 /usr/local/s2i \
1818
&& chown -R $USER:root /usr/local/s2i
1919

20+
# OPENJDK-2805
21+
ln -s /usr/local/s2i /usr/libexec/s2i
22+
2023
mkdir -p /deployments \
2124
&& chmod -R "ug+rwX" /deployments \
2225
&& chown -R $USER:root /deployments

0 commit comments

Comments
 (0)