UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
M
Microsoft
microsoft
microsoft-sql-server-2019-rhel8
Commits
714b7a8b
Commit
714b7a8b
authored
Aug 23, 2021
by
Salvador Orozco Villalever
Committed by
Andy Maksymowicz
Aug 23, 2021
Browse files
Remove unnecessary glibc-devel and its dependencies
parent
39308ffc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
scripts/install_external.sh
scripts/install_external.sh
+12
-5
No files found.
scripts/install_external.sh
View file @
714b7a8b
...
@@ -140,15 +140,20 @@ function performPreInstallationTasksForExternalBuild()
...
@@ -140,15 +140,20 @@ function performPreInstallationTasksForExternalBuild()
function
installPackages
()
function
installPackages
()
{
{
if
[
"
$PLATFORM_NAME
"
==
"
$RHEL8
"
]
;
then
if
[
"
$PLATFORM_NAME
"
==
"
$RHEL8
"
]
;
then
ACCEPT_EULA
=
Y dnf
-q
-y
--disableplugin
=
subscription-manager
install
\
ACCEPT_EULA
=
Y dnf
-q
-y
-v
--disableplugin
=
subscription-manager
install
\
$(
getListOfPackagesToInstall
)
elif
[
"
$PLATFORM_NAME
"
==
"
$RHEL7
"
]
;
then
ACCEPT_EULA
=
Y yum
-y
--nogpgcheck
install
\
$(
getListOfPackagesToInstall
)
$(
getListOfPackagesToInstall
)
fi
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
# Function that performs post-installation tasks
# common across build environments.
# common across build environments.
#
#
...
@@ -181,6 +186,8 @@ function performCommonPostInstallationTasks
...
@@ -181,6 +186,8 @@ function performCommonPostInstallationTasks
# Remove files from /tmp.
# Remove files from /tmp.
#
#
rm
-rf
/tmp/
*
rm
-rf
/tmp/
*
removeUnnecessaryPackages
}
}
# Function that drives the installation of packages
# Function that drives the installation of packages
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment