Skip to content

Commit 09bb1ed

Browse files
Rexrexcsn
authored andcommitted
Fix runtime bake package installation issue on CentOS7
* Runtime bake path was failing to install `jq` silently on CentOS7 * Add `--setopt=skip_missing_names_on_install=False` so that yum will `exit 1` if package name is missing: https://bugzilla.redhat.com/show_bug.cgi?id=1274211 * Fix package installation by installing `epel-release` before `jq` * CentOS 8 does not have this issue; `dnf` will `exit 1` if there is a missing package Signed-off-by: Rex <[email protected]>
1 parent 9c0ab64 commit 09bb1ed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cloudformation/compute-fleet-hit-substack.cfn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ Resources:
417417
dnf -y groupinstall development && dnf -y install curl wget jq python3-pip
418418
pip3 install awscli --upgrade --user
419419
elif [ "${!yum}" == "0" ]; then
420-
yum -y groupinstall development && yum -y install curl wget jq awscli python3-pip
420+
yum -y groupinstall development && yum -y install epel-release && yum -y --setopt=skip_missing_names_on_install=False install curl wget jq awscli python3-pip
421421
fi
422422
if [ "${!apt}" == "0" ]; then
423423
apt-cache search build-essential; apt-get clean; apt update -y; apt-get -y install build-essential curl wget jq python-setuptools awscli python3-pip

cloudformation/compute-fleet-substack.cfn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ Resources:
529529
dnf -y groupinstall development && dnf -y install curl wget jq python3-pip
530530
pip3 install awscli --upgrade --user
531531
elif [ "${!yum}" == "0" ]; then
532-
yum -y groupinstall development && yum -y install curl wget jq awscli python3-pip
532+
yum -y groupinstall development && yum -y install epel-release && yum -y --setopt=skip_missing_names_on_install=False install curl wget jq awscli python3-pip
533533
fi
534534
if [ "${!apt}" == "0" ]; then
535535
apt-cache search build-essential; apt-get clean; apt update -y; apt-get -y install build-essential curl wget jq python-setuptools awscli python3-pip

cloudformation/master-server-substack.cfn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ Resources:
485485
dnf -y groupinstall development && dnf -y install curl wget jq python3-pip
486486
pip3 install awscli --upgrade --user
487487
elif [ "${!yum}" == "0" ]; then
488-
yum -y groupinstall development && yum -y install curl wget jq awscli python3-pip
488+
yum -y groupinstall development && yum -y install epel-release && yum -y --setopt=skip_missing_names_on_install=False install curl wget jq awscli python3-pip
489489
fi
490490
if [ "${!apt}" == "0" ]; then
491491
apt-cache search build-essential; apt-get clean; apt update -y; apt-get -y install build-essential curl wget jq python-setuptools awscli python3-pip

0 commit comments

Comments
 (0)