diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 28924b0d58..d45ce2753a 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -140,31 +140,15 @@ RUN yum install -y https://rdo.fedorapeople.org/rdo-release.rpm \ {% endif %} # Update packages -RUN yum update -y \ - && yum install -y \ - epel-release \ - gcc \ - gcc-c++ \ - git \ - libffi-devel \ - libxml2-devel \ - libxslt-devel \ - mariadb-devel \ - mysql-devel \ - openldap-devel \ - openssl \ - openssl-devel \ - postgresql \ - postgresql-devel \ - python-devel \ - sqlite-devel \ +RUN yum -y install \ + curl \ sudo \ tar \ which \ && yum clean all + # endif for install type is source for RPM based distros {% endif %} - # endif for install type is binary/rhos/rdo for RPM based distros # endif for base_distro centos,fedora,oraclelinux,rhel {% elif base_distro in ['ubuntu', 'debian'] %} diff --git a/docker/openstack-base/Dockerfile.j2 b/docker/openstack-base/Dockerfile.j2 index 3e13505161..f730a2de40 100644 --- a/docker/openstack-base/Dockerfile.j2 +++ b/docker/openstack-base/Dockerfile.j2 @@ -38,8 +38,25 @@ RUN yum -y install \ {% endif %} {% elif install_type == 'source' %} + {% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %} - {% if base_distro in ['ubuntu', 'debian'] %} +RUN yum -y install \ + gcc \ + gcc-c++ \ + libffi-devel \ + libxml2-devel \ + libxslt-devel \ + mariadb-devel \ + mysql-devel \ + openldap-devel \ + openssl-devel \ + postgresql \ + postgresql-devel \ + python-devel \ + sqlite-devel \ + && yum clean all + + {% elif base_distro in ['ubuntu', 'debian'] %} RUN apt-get install -y --no-install-recommends \ curl \