Skip to content

Commit

Permalink
Merge pull request sclorg#89 from mfojtik/verify-rpms
Browse files Browse the repository at this point in the history
Verify all installed packages using rpm -V
  • Loading branch information
bparees committed Jan 12, 2016
2 parents 724007d + fc308b8 commit 738d0f8
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
7 changes: 4 additions & 3 deletions 2.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ LABEL io.k8s.description="Platform for building and running Python 2.7 applicati
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,python,python27,rh-python27"

RUN yum install -y centos-release-scl && \
yum install -y --setopt=tsflags=nodocs --enablerepo=centosplus python27 python27-python-devel python27-python-setuptools python27-python-pip epel-release && \
yum install -y --setopt=tsflags=nodocs install nss_wrapper && \
RUN INSTALL_PKGS="python27 python27-python-devel python27-python-setuptools python27-python-pip epel-release nss_wrapper" && \
yum install -y centos-release-scl && \
yum install -y --setopt=tsflags=nodocs --enablerepo=centosplus $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
5 changes: 3 additions & 2 deletions 2.7/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ LABEL Name="rhscl/python-27-rhel7" \
Release="1" \
Architecture="x86_64"

RUN yum-config-manager --enable rhel-server-rhscl-7-rpms \
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && \
yum-config-manager --enable rhel-7-server-optional-rpms && \
yum-config-manager --disable epel >/dev/null || : && \
yum install -y --setopt=tsflags=nodocs python27 python27-python-devel python27-python-setuptools python27-python-pip nss_wrapper && \
INSTALL_PKGS="python27 python27-python-devel python27-python-setuptools python27-python-pip nss_wrapper" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && \
yum clean all -y

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
5 changes: 3 additions & 2 deletions 3.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ LABEL io.k8s.description="Platform for building and running Python 3.3 applicati
io.openshift.tags="builder,python,python33"

RUN yum install -y centos-release-scl && \
yum install -y --setopt=tsflags=nodocs --enablerepo=centosplus python33 python33-python-devel python33-python-setuptools epel-release && \
yum install -y --setopt=tsflags=nodocs install nss_wrapper && \
INSTALL_PKGS="python33 python33-python-devel python33-python-setuptools epel-release nss_wrapper" && \
yum install -y --setopt=tsflags=nodocs --enablerepo=centosplus $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
6 changes: 4 additions & 2 deletions 3.3/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ LABEL BZComponent="openshift-sti-python-docker" \
Release="1" \
Architecture="x86_64"

RUN yum-config-manager --enable rhel-server-rhscl-7-rpms \
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && \
yum-config-manager --enable rhel-7-server-optional-rpms && \
yum-config-manager --disable epel >/dev/null || : && \
yum install -y --setopt=tsflags=nodocs python33 python33-python-devel python33-python-setuptools python33-python-pip nss_wrapper && \
INSTALL_PKGS="python33 python33-python-devel python33-python-setuptools python33-python-pip nss_wrapper" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
7 changes: 4 additions & 3 deletions 3.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ LABEL io.k8s.description="Platform for building and running Python 3.4 applicati
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,python,python34,rh-python34"

RUN yum install -y centos-release-scl && \
yum install -y --setopt=tsflags=nodocs --enablerepo=centosplus rh-python34 rh-python34-python-devel rh-python34-python-setuptools rh-python34-python-pip epel-release && \
yum install -y --setopt=tsflags=nodocs install nss_wrapper && \
RUN yum install --enablerepo=centosplus -y centos-release-scl epel-release && \
INSTALL_PKGS="rh-python34 rh-python34-python-devel rh-python34-python-setuptools rh-python34-python-pip nss_wrapper" && \
yum install -y --setopt=tsflags=nodocs --enablerepo=centosplus $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
6 changes: 4 additions & 2 deletions 3.4/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ LABEL Name="rhscl/python-34-rhel7" \
Release="1" \
Architecture="x86_64"

RUN yum-config-manager --enable rhel-server-rhscl-7-rpms \
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && \
yum-config-manager --enable rhel-7-server-optional-rpms && \
yum-config-manager --disable epel >/dev/null || : && \
yum install -y --setopt=tsflags=nodocs rh-python34 rh-python34-python-devel rh-python34-python-setuptools rh-python34-python-pip nss_wrapper && \
INSTALL_PKGS="rh-python34 rh-python34-python-devel rh-python34-python-setuptools rh-python34-python-pip nss_wrapper" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down

0 comments on commit 738d0f8

Please sign in to comment.