aboutsummaryrefslogtreecommitdiff
path: root/docker/fedora/source/base
diff options
context:
space:
mode:
authorSwapnil Kulkarni <me@coolsvap.net>2015-07-28 05:39:32 +0000
committerSwapnil Kulkarni <me@coolsvap.net>2015-07-30 09:07:28 +0000
commit5f3ba81561086b59aa3ad16376166d20dd29ed17 (patch)
tree6997cac3bb450ac57b73cb6bb9022d9a0907ca82 /docker/fedora/source/base
parenta0f67f67df6619f59e3f31d2bf3636a97bd80b51 (diff)
downloadkolla-5f3ba81561086b59aa3ad16376166d20dd29ed17.tar.gz
kolla-5f3ba81561086b59aa3ad16376166d20dd29ed17.zip
Add fedora base image for build from source
Change-Id: I54827df016c8bcdceb06042066cd7c69236de707 Partially-implements: blueprint install-from-source
Diffstat (limited to 'docker/fedora/source/base')
-rw-r--r--docker/fedora/source/base/Dockerfile49
l---------docker/fedora/source/base/build1
l---------docker/fedora/source/base/kolla-common.sh1
l---------docker/fedora/source/base/service_hosts.sh1
4 files changed, 52 insertions, 0 deletions
diff --git a/docker/fedora/source/base/Dockerfile b/docker/fedora/source/base/Dockerfile
new file mode 100644
index 000000000..04afcdc72
--- /dev/null
+++ b/docker/fedora/source/base/Dockerfile
@@ -0,0 +1,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/
diff --git a/docker/fedora/source/base/build b/docker/fedora/source/base/build
new file mode 120000
index 000000000..8d652f7ee
--- /dev/null
+++ b/docker/fedora/source/base/build
@@ -0,0 +1 @@
+../../../../tools/build-docker-image \ No newline at end of file
diff --git a/docker/fedora/source/base/kolla-common.sh b/docker/fedora/source/base/kolla-common.sh
new file mode 120000
index 000000000..c265c62f7
--- /dev/null
+++ b/docker/fedora/source/base/kolla-common.sh
@@ -0,0 +1 @@
+../../../common/base/kolla-common.sh \ No newline at end of file
diff --git a/docker/fedora/source/base/service_hosts.sh b/docker/fedora/source/base/service_hosts.sh
new file mode 120000
index 000000000..06e045440
--- /dev/null
+++ b/docker/fedora/source/base/service_hosts.sh
@@ -0,0 +1 @@
+../../../common/base/service_hosts.sh \ No newline at end of file