Merge pull request #340 from zmiklank/exit_oc_tests_if_login_fails

Exit oc tests gracefully if login fails
This commit is contained in:
phracek 2022-06-10 08:44:57 +00:00
commit 5bfde53a71
51 changed files with 5345 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# Set current user in nss_wrapper
USER_ID=$(id -u)
GROUP_ID=$(id -g)
if [ x"$USER_ID" != x"0" -a x"$USER_ID" != x"1001" ]; then
NSS_WRAPPER_PASSWD=/opt/app-root/etc/passwd
NSS_WRAPPER_GROUP=/etc/group
cat /etc/passwd | sed -e 's/^default:/builder:/' > $NSS_WRAPPER_PASSWD
echo "default:x:${USER_ID}:${GROUP_ID}:Default Application User:${HOME}:/sbin/nologin" >> $NSS_WRAPPER_PASSWD
export NSS_WRAPPER_PASSWD
export NSS_WRAPPER_GROUP
export LD_PRELOAD=libnss_wrapper.so
fi

View file

@ -0,0 +1,5 @@
async
mime
mkdirp
qs
minimatch

View file

@ -0,0 +1,3 @@
# This will make scl collection binaries work out of box.
unset BASH_ENV PROMPT_COMMAND ENV
source scl_source enable rh-nodejs${NODEJS_VERSION}