Browse Source

Merge pull request #11393 from openshift-cherrypick-robot/cherry-pick-11371-to-master

[master] Dockerfile.rhel7: simplify pkg install
OpenShift Merge Robot 6 years ago
parent
commit
b03e29cda4
1 changed files with 2 additions and 4 deletions
  1. 2 4
      images/installer/Dockerfile.rhel7

+ 2 - 4
images/installer/Dockerfile.rhel7

@@ -5,14 +5,12 @@ MAINTAINER OpenShift Team <dev@lists.openshift.redhat.com>
 USER root
 
 # Playbooks, roles, and their dependencies are installed from packages.
-RUN INSTALL_PKGS="openshift-ansible atomic-openshift-clients python-boto python2-boto3 python2-crypto openssl iproute httpd-tools" \
+RUN INSTALL_PKGS="openshift-ansible atomic-openshift-clients python-boto python2-boto3 python2-crypto openssl iproute httpd-tools java-1.8.0-openjdk-headless" \
  && x86_EXTRA_RPMS=$(if [ "$(uname -m)" == "x86_64" ]; then echo -n google-cloud-sdk ; fi) \
  && yum repolist > /dev/null \
  && yum-config-manager --enable rhel-7-server-ose-3.7-rpms \
  && yum-config-manager --enable rhel-7-server-rh-common-rpms \
- && yum install -y java-1.8.0-openjdk-headless \
- && yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS $x86_EXTRA_RPMS \
- && rpm -q $INSTALL_PKGS $x86_EXTRA_RPMS \
+ && yum install -y --setopt=skip_missing_names_on_install=False --setopt=tsflags=nodocs $INSTALL_PKGS $x86_EXTRA_RPMS \
  && yum clean all
 
 LABEL name="openshift3/ose-ansible" \