f4506ddd60
COPR is a repository for third party packages built by the Fedora build system. Instead of dragging in 250MB of dependencies to build pam, build externally and load only the RPM into the image. The pam that is built externally is built with the --with-noaudit flag and a Provides: pam line. Change-Id: I28396996943d2fdc12b253faf62af8623c8b0e73
109 lines
2.3 KiB
Docker
109 lines
2.3 KiB
Docker
FROM fedora:20
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
# Set up repositories
|
|
RUN yum install -y https://rdo.fedorapeople.org/rdo-release.rpm
|
|
RUN yum -y install dnf dnf-plugins-core && yum clean all
|
|
RUN dnf copr enable -y larsks/crux
|
|
run dnf copr enable -y sdake/pam.noaudit
|
|
|
|
|
|
# Update packages
|
|
RUN yum update -y && yum clean all
|
|
|
|
# Install base packages
|
|
RUN yum install -y \
|
|
crux \
|
|
mariadb \
|
|
mariadb-libs \
|
|
openssl \
|
|
openstack-utils \
|
|
pyparsing \
|
|
python-alembic \
|
|
python-amqp \
|
|
python-amqplib \
|
|
python-anyjson \
|
|
python-boto \
|
|
python-cheetah \
|
|
python-cliff \
|
|
python-cmd2 \
|
|
python-croniter \
|
|
python-crypto \
|
|
python-d2to1 \
|
|
python-docutils \
|
|
python-dogpile-cache \
|
|
python-dogpile-core \
|
|
python-empy \
|
|
python-eventlet \
|
|
python-flask \
|
|
python-futures \
|
|
python-greenlet \
|
|
python-httplib2 \
|
|
python-iso8601 \
|
|
python-itsdangerous \
|
|
python-jinja2 \
|
|
python-jsonpatch \
|
|
python-jsonpath-rw \
|
|
python-jsonpointer \
|
|
python-jsonschema \
|
|
python-keyring \
|
|
python-kombu \
|
|
python-ldap \
|
|
python-lesscpy \
|
|
python-lockfile \
|
|
python-lxml \
|
|
python-markdown \
|
|
python-memcached \
|
|
python-migrate \
|
|
python-msgpack \
|
|
python-netifaces \
|
|
python-networkx \
|
|
python-oauthlib \
|
|
python-oslo-config \
|
|
python-oslo-messaging \
|
|
python-oslo-rootwrap \
|
|
python-paramiko \
|
|
python-passlib \
|
|
python-paste-deploy \
|
|
python-pbr \
|
|
python-pecan \
|
|
python-ply \
|
|
python-prettytable \
|
|
python-psutil \
|
|
python-pycadf \
|
|
python-pygments \
|
|
python-pymongo \
|
|
python-qpid \
|
|
python-repoze-lru \
|
|
python-requests \
|
|
python-routes \
|
|
python-simplegeneric \
|
|
python-simplejson \
|
|
python-singledispatch \
|
|
python-six \
|
|
python-sqlalchemy \
|
|
python-stevedore \
|
|
python-taskflow \
|
|
python-versiontools \
|
|
python-warlock \
|
|
python-webob \
|
|
python-websockify \
|
|
python-webtest \
|
|
python-werkzeug \
|
|
python-wsme \
|
|
&& yum clean all
|
|
|
|
# This is dirty like zebra. This works around 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 build pam without authentication.
|
|
# See:
|
|
# https://registry.hub.docker.com/u/sequenceiq/pam/
|
|
#
|
|
RUN rpm -e --nodeps pam
|
|
RUN yum -y install pam+noaudit && yum clean all
|
|
# 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
|