From e85a8ef21ec42dbe6f006f532ec3385e0d8c1a4a Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Sat, 16 Mar 2019 23:33:42 -0500 Subject: Manually add NSS libraries to images. Alpine OpenJDK was updated 2 days ago (3/14), this upgrade seems to break java applications that depend on libnss*.so OS libraries, which seem are no longer installed with the jdk. Before: openjdk version "1.8.0_191" OpenJDK Runtime Environment (IcedTea 3.10.0) (Alpine 8.191.12-r0) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode ls /usr/lib/libnss* /usr/lib/libnss3.so /usr/lib/libnssckbi.so.41 /usr/lib/libnssdbm3.so.41 /usr/lib/libnss3.so.41 /usr/lib/libnssdbm3.chk /usr/lib/libnssutil3.so /usr/lib/libnssckbi.so /usr/lib/libnssdbm3.so /usr/lib/libnssutil3.so.41 Now: openjdk version "1.8.0_201" OpenJDK Runtime Environment (IcedTea 3.11.0) (Alpine 8.201.08-r0) OpenJDK 64-Bit Server VM (build 25.201-b08, mixed mode) > ls /usr/lib/libnss*" ls: cannot access '/usr/lib/libnss*': No such file or directory Change-Id: I371d1b3426ded294dba16d4217f6c9ce5a5acf04 Issue-ID: POLICY-1604 Signed-off-by: Jorge Hernandez --- packages/base/src/files/etc/profile.d/env.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/base/src') diff --git a/packages/base/src/files/etc/profile.d/env.sh b/packages/base/src/files/etc/profile.d/env.sh index 5a58940f..00f61df4 100644 --- a/packages/base/src/files/etc/profile.d/env.sh +++ b/packages/base/src/files/etc/profile.d/env.sh @@ -35,11 +35,13 @@ if [[ -z "${POLICY_HOME}" ]]; then fi fi +confs=$(ls "${POLICY_HOME}"/etc/profile.d/*.conf 2> /dev/null) +c= + set -a POLICY_HOME=${POLICY_HOME:=/opt/app/policy} -confs=$(ls "${POLICY_HOME}"/etc/profile.d/*.conf 2> /dev/null) for c in ${confs} ; do source ${c} done -- cgit 1.2.3-korg