summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2015-03-26 11:49:06 -0700
committerSteven Dake <stdake@cisco.com>2015-03-26 13:39:16 -0700
commitafcc1569b8fe3f962ad13bd0ed780c3336163fd3 (patch)
tree401e96defa2c7e4c07d610ca3fd20aae1b147ded /docker
parent0caf1c3ecb7e76558c3b89bdcbd9af3a4114a35c (diff)
downloadkolla-afcc1569b8fe3f962ad13bd0ed780c3336163fd3.tar.gz
kolla-afcc1569b8fe3f962ad13bd0ed780c3336163fd3.zip
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
Diffstat (limited to 'docker')
-rw-r--r--docker/centos-rdo-base/Dockerfile17
1 files changed, 17 insertions, 0 deletions
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