From afcc1569b8fe3f962ad13bd0ed780c3336163fd3 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Thu, 26 Mar 2015 11:49:06 -0700 Subject: Work around Ubuntu 14.04 Kernel bug with --net=host This patch builds pam with no auditing. This allows the images to operate on Ubuntu 14.04 which contain a kernel bug and have not been updated. Change-Id: I2b8bd192abcc26df27ca276dc3d0fde377048f20 --- docker/centos-rdo-base/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'docker') diff --git a/docker/centos-rdo-base/Dockerfile b/docker/centos-rdo-base/Dockerfile index a0ce5248b..030d751c8 100644 --- a/docker/centos-rdo-base/Dockerfile +++ b/docker/centos-rdo-base/Dockerfile @@ -92,6 +92,23 @@ RUN yum install -y \ python-wsme \ ; yum clean all +# This is dirty like zebra. This works aorund a bug in Ubuntu 14.04 LTS. The +# --net=host option does not work on ubuntu 14.04 because of a kernel bug. One +# workaround is to buid pam without authentication. +# See: +# https://registry.hub.docker.com/u/sequenceiq/pam/ +# +RUN yum install -y tar bzip2 yum-utils rpm-build make + +RUN yum-builddep -y pam +RUN yumdownloader --source pam +RUN rpmbuild --rebuild --define 'WITH_AUDIT 0' --define 'dist +noaudit' pam*.src.rpm +RUN rpm -Uvh --oldpackage ~/rpmbuild/RPMS/*/pam*+noaudit*.rpm + +RUN rm -f /*.rpm +RUN rm -rf ~/rpmbuild +# End dirty like zebra + RUN mkdir -p /opt/kolla ADD service_hosts.sh /opt/kolla/service_hosts.sh ADD kolla-common.sh /opt/kolla/kolla-common.sh -- cgit v1.2.3