498b235461
Build and test / Build and test AMD64 Ubuntu 22.04 (push) Failing after 0s
Publish Builder / amazonlinux2023 (push) Failing after 1s
Build and test / UT for Go (push) Has been skipped
Publish KRTE Images / KRTE (push) Failing after 1s
Build and test / Integration Test (push) Has been skipped
Build and test / Upload Code Coverage (push) Has been skipped
Publish Builder / rockylinux9 (push) Failing after 1s
Publish Builder / ubuntu22.04 (push) Failing after 0s
Publish Builder / ubuntu24.04 (push) Failing after 0s
Publish Gpu Builder / publish-gpu-builder (push) Failing after 1s
Publish Test Images / PyTest (push) Failing after 0s
Build and test / UT for Cpp (push) Has been cancelled
41 lines
925 B
Bash
Executable File
41 lines
925 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Exit immediately for non zero status
|
|
set -e
|
|
|
|
# Ensure $HOME exists when starting
|
|
if [ ! -d "${HOME}" ]; then
|
|
mkdir -p "${HOME}"
|
|
fi
|
|
|
|
# Setup $PS1 for a consistent and reasonable prompt
|
|
if [ -w "${HOME}" ] && [ -d /etc/skel ]; then
|
|
cp /etc/skel/.bash* "${HOME}"
|
|
fi
|
|
|
|
# Add current (arbitrary) user to /etc/passwd and /etc/group
|
|
if ! whoami &> /dev/null; then
|
|
if [ -w /etc/passwd ]; then
|
|
echo "${USER_NAME:-user}:x:$(id -u):0:${USER_NAME:-user} user:${HOME}:/bin/bash" >> /etc/passwd
|
|
echo "${USER_NAME:-user}:x:$(id -u):" >> /etc/group
|
|
fi
|
|
fi
|
|
|
|
set +e
|
|
if [ -f "/etc/profile.d/devtoolset-11.sh" ]; then
|
|
source "/etc/profile.d/devtoolset-11.sh"
|
|
fi
|
|
|
|
if [ -f "/opt/rh/gcc-toolset-11/enable" ]; then
|
|
source "/opt/rh/gcc-toolset-11/enable"
|
|
fi
|
|
|
|
if [ -f "/etc/profile.d/llvm-toolset-11.sh" ]; then
|
|
source "/etc/profile.d/llvm-toolset-11.sh"
|
|
fi
|
|
|
|
# Exit immediately for non zero status
|
|
set -e
|
|
|
|
exec "$@"
|