UNCLASSIFIED

Commit a5eb2341 authored by Andy Maksymowicz's avatar Andy Maksymowicz
Browse files

Merge branch 'personal/saorozco/test-remove-kernel-headers' into 'development'

Remove unnecessary glibc-devel and its dependencies

See merge request !39
parents 39308ffc 714b7a8b
Pipeline #440964 passed with stages
in 20 minutes and 24 seconds
......@@ -140,15 +140,20 @@ function performPreInstallationTasksForExternalBuild()
function installPackages()
{
if [ "$PLATFORM_NAME" == "$RHEL8" ]; then
ACCEPT_EULA=Y dnf -q -y --disableplugin=subscription-manager install \
$(getListOfPackagesToInstall)
elif [ "$PLATFORM_NAME" == "$RHEL7" ]; then
ACCEPT_EULA=Y yum -y --nogpgcheck install \
ACCEPT_EULA=Y dnf -q -y -v --disableplugin=subscription-manager install \
$(getListOfPackagesToInstall)
fi
}
# Function that removes packages from the container image
# which are not actually needed.
#
function removeUnnecessaryPackages()
{
dnf remove -y -v \
glibc-devel
}
# Function that performs post-installation tasks
# common across build environments.
#
......@@ -181,6 +186,8 @@ function performCommonPostInstallationTasks
# Remove files from /tmp.
#
rm -rf /tmp/*
removeUnnecessaryPackages
}
# Function that drives the installation of packages
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment