blob: 04afcdc722d06d1e860f5b00279c3eba4c5ed035 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
FROM fedora:21
MAINTAINER Kolla Project (https://launchpad.net/kolla)
# This repository provides crux which permits idempotent operation of RDO
RUN curl https://copr.fedoraproject.org/coprs/sdake/crux/repo/epel-7/sdake-crux-epel-7.repo -o \
/etc/yum.repos.d/sdake-crux-epel-7.repo
# Dependencies required for building/installing source components
RUN yum install -y \
crux \
gcc \
git \
libffi-devel \
libxml2-devel \
libxslt-devel \
mariadb \
mariadb-devel \
mysql-devel \
MySQL-python \
openldap-devel \
openssl \
openssl-devel \
postgresql \
postgresql-devel \
python-devel \
python-oslo-policy \
sqlite-devel \
tar \
&& yum clean all
# the only dependencies we need from RDO in the source builds are
# python-pip, python-cliff for crux, and crudini,
# all of which can be pulled from pypi.
# also the older version of pip does not have support for wheels
# we are installing from source pip is the important for
# most dependency installations
# https://bugs.launchpad.net/kolla/+bug/1476760
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python get-pip.py \
&& rm get-pip.py
RUN pip install --upgrade \
cachetools \
crudini \
pip \
tox
COPY service_hosts.sh kolla-common.sh /opt/kolla/
|