From 51de7b7d88c64e4c4e8ca7a0c71a48da2002883a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20B=C3=A9rtoli?= Date: Sat, 16 Nov 2019 10:31:19 -0300 Subject: [PATCH] fix(amazonlinux): epel does not exist in amazonlinux, so we make it conditional --- Dockerfile.yum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.yum b/Dockerfile.yum index e72d3e3..d47dfb2 100644 --- a/Dockerfile.yum +++ b/Dockerfile.yum @@ -12,7 +12,7 @@ ARG EXTRA_PACKAGES="" ARG PKGS="udev git net-tools sudo curl openssh-server openssh-clients which $EXTRA_PACKAGES" # Centos 7 and 6 requires EPEL repo before being able to install python2-pip -RUN [ "$DISTRO_NAME" = "centos" ] && yum -y install epel-release +RUN if [ "$DISTRO_NAME" = "centos" ]; then yum -y install epel-release; fi RUN yum -y update && yum -y install ${PKGS} # The sed command is a quick fix for https://github.com/saltstack/salt-bootstrap/issues/1371