Skip to content

Commit

Permalink
Add minor pin to second stage build
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Dec 13, 2024
1 parent 0c5d30d commit ab357a2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cli/src/pcluster/resources/imagebuilder/parallelcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,21 @@ phases:
echo ${!OS}
- name: OperatingSystemVersion
action: ExecuteBash
inputs:
commands:
- |
set -v
FILE=/etc/os-release
if [ -e ${!FILE} ]; then
. ${!FILE}
echo "${!VERSION_ID}"
else
echo "The file '${!FILE}' does not exist. Failing build."
exit {{ FailExitCode }}
fi
# Get platform name
- name: PlatformName
action: ExecuteBash
Expand Down Expand Up @@ -176,9 +191,16 @@ phases:
set -v
OS='{{ build.OperatingSystemName.outputs.stdout }}'
PLATFORM='{{ build.PlatformName.outputs.stdout }}'
VERSION='{{ build.OperatingSystemVersion.outputs.stdout }}'
if [[ ${!PLATFORM} == RHEL ]]; then
if [[ ${!OS} == rhel9 ]]; then
echo ${!VERSION} > /etc/yum/vars/releasever
yum clean all
fi
yum -y update krb5-libs
yum -y groupinstall development && sudo yum -y install curl wget jq
if [[ ${!OS} =~ ^centos ]]; then
/bin/sed -r -i -e 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
Expand Down

0 comments on commit ab357a2

Please sign in to comment.