Skip to content

Commit 1b476e4

Browse files
committed
Merge branch 'ubi9' into OPENJDK-4025-ubi10-revert-artifacts
2 parents 21c6455 + c664d52 commit 1b476e4

File tree

27 files changed

+132
-109
lines changed

27 files changed

+132
-109
lines changed

.github/workflows/gendocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fetch-depth: 0 # all branches and tags
3030

3131
- name: Install CEKit
32-
uses: cekit/[email protected].5
32+
uses: cekit/[email protected].7
3333

3434
- name: Setup required packages for docs
3535
run: |

modules/jdk/21/configure.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ set -e
55
SCRIPT_DIR=$(dirname $0)
66
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
77

8-
chown -R $USER:root $SCRIPT_DIR
9-
chmod -R ug+rwX $SCRIPT_DIR
10-
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/openjdk/jdk/*
11-
12-
pushd ${ARTIFACTS_DIR}
13-
cp -pr * /
14-
popd
8+
install -m 0644 -D {${ARTIFACTS_DIR},}/opt/jboss/container/openjdk/jdk/jvm-options
159

1610
# Update securerandom.source for quicker starts (must be done after removing jdk 8, or it will hit the wrong files)
1711
JAVA_SECURITY_FILE=/usr/lib/jvm/java/conf/security/java.security

modules/jre/21/configure.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
#!/bin/sh
2-
# Configure module
3-
set -e
1+
#!/bin/bash
2+
set -euo pipefail
43

54
SCRIPT_DIR=$(dirname $0)
6-
echo $SCRIPT_DIR
75
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
8-
echo $ARTIFACTS_DIR
96

10-
chown -R $USER:root $SCRIPT_DIR
11-
chmod -R ug+rwX $SCRIPT_DIR
12-
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/openjdk/jre/*
7+
install -m 0644 -D {${ARTIFACTS_DIR},}/opt/jboss/container/openjdk/jre/jvm-options
138

14-
pushd ${ARTIFACTS_DIR}
15-
cp -pr * /
16-
popd
9+
# Set this JDK as the alternative in use
10+
_arch="$(uname -i)"
11+
alternatives --set java java-21-openjdk.${_arch}

modules/jvm/artifacts/opt/jboss/container/java/jvm/debug-options

100644100755
File mode changed.

modules/jvm/artifacts/opt/jboss/container/java/jvm/java-default-options

100644100755
File mode changed.

modules/jvm/configure.sh

100755100644
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
#!/bin/sh
2-
# Configure module
3-
set -e
1+
#!/bin/bash
2+
set -euo pipefail
43

54
SCRIPT_DIR=$(dirname $0)
65
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
76

8-
chown -R $USER:root $SCRIPT_DIR
9-
chmod -R ug+rwX $SCRIPT_DIR
10-
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/java/jvm/*
11-
12-
pushd ${ARTIFACTS_DIR}
13-
cp -pr * /
14-
popd
7+
install -D -t /opt/jboss/container/java/jvm \
8+
${ARTIFACTS_DIR}/opt/jboss/container/java/jvm/*

modules/jvm/module.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ description: ^
88
execute:
99
- script: configure.sh
1010

11+
execute:
12+
- script: configure.sh
13+
1114
modules:
1215
install:
1316
- name: jboss.container.user
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Feature: test file properties for JVM module
2+
3+
@ubi9
4+
Scenario: Ensure image scripts are executable (OPENJDK-3935)
5+
When container is started with args
6+
| arg | value |
7+
| command | find /opt/jboss/container/java/ -type f -printf "%h/%f %M\n" |
8+
Then available container log should contain /opt/jboss/container/java/jvm/debug-options -rwxr-xr-x
9+
And available container log should contain /opt/jboss/container/java/jvm/java-default-options -rwxr-xr-x

modules/maven/default/configure.sh

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
#!/bin/sh
2-
# Configure module
3-
set -e
1+
#!/bin/bash
2+
set -euo pipefail
43

54
SCRIPT_DIR=$(dirname $0)
65
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
76

8-
# configure artifact permissions
9-
chown -R $USER:root $ARTIFACTS_DIR
10-
chmod -R ug+rwX $ARTIFACTS_DIR
11-
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/maven/default/maven.sh
12-
13-
# install artifacts
14-
pushd ${ARTIFACTS_DIR}
15-
cp -pr * /
16-
popd
7+
install -m 0644 -D -t /opt/jboss/container/maven/default \
8+
${ARTIFACTS_DIR}/opt/jboss/container/maven/default/*
179

1810
# install default settings.xml file in user home
1911
mkdir -p $HOME/.m2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[maven]
22
name=maven
3-
stream=3.8
3+
stream=3.9
44
profiles=
55
state=enabled

0 commit comments

Comments
 (0)