Skip to content

Commit 8806a2e

Browse files
authored
Merge pull request #332 from jmtd/OPENJDK-1335-microdnf-update-weak-deps
[OPENJDK-1335] microdnf update weak deps
2 parents 54da0e3 + 760d7cf commit 8806a2e

File tree

8 files changed

+22
-7
lines changed

8 files changed

+22
-7
lines changed

.github/workflows/ubi8-openjdk-11-runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: OpenJDK 11 Runtime Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.11.0
5+
CEKIT_VERSION: 4.5.0
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
77
jobs:
88
openjdkci:

.github/workflows/ubi8-openjdk-11.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: OpenJDK 11 S2I Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.6.0
5+
CEKIT_VERSION: 4.5.0
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
77
jobs:
88
openjdkci:

.github/workflows/ubi8-openjdk-17-runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: OpenJDK 17 Runtime Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.11.0
5+
CEKIT_VERSION: 4.5.0
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
77
jobs:
88
openjdkci:

.github/workflows/ubi8-openjdk-17.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: OpenJDK 17 S2I Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.6.0
5+
CEKIT_VERSION: 4.5.0
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
77
jobs:
88
openjdkci:

.github/workflows/ubi8-openjdk-8-runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: OpenJDK 8 Runtime Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.11.0
5+
CEKIT_VERSION: 4.5.0
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
77
jobs:
88
openjdkci:

.github/workflows/ubi8-openjdk-8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: OpenJDK 8 S2I Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.6.0
5+
CEKIT_VERSION: 4.5.0
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
77
jobs:
88
openjdkci:

modules/util/pkg-update/execute.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
for candidate in yum dnf microdnf; do
55
if command -v "$candidate"; then
66
mgr="$(command -v "$candidate")"
7-
"$mgr" update -y
7+
"$mgr" update --setopt=install_weak_deps=0 --setopt=tsflags=nodocs -y
88
"$mgr" -y clean all
99
exit
1010
fi

tests/features/java/openjdk.feature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,18 @@ Feature: Miscellaneous OpenJDK-related unit tests
7979
| arg | value |
8080
| command | bash -c "$JAVA_HOME/bin/java -XshowSettings:properties -version" |
8181
Then available container log should contain file.encoding = UTF-8
82+
83+
@ubi8/openjdk-8
84+
@ubi8/openjdk-11
85+
@ubi8/openjdk-17
86+
Scenario: Check that transitive weak dependencies are not installed (OPENJDK-1335)
87+
When container is started with args
88+
| arg | value |
89+
| command | rpm -qa |
90+
Then container log should not contain procps-ng
91+
Then container log should not contain os-prober
92+
Then container log should not contain which
93+
Then container log should not contain systemd-pam
94+
Then container log should not contain libpwquality
95+
Then container log should not contain libxkbcommon
96+
Then container log should not contain kbd

0 commit comments

Comments
 (0)