aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2015-07-09 12:00:45 +0000
committerPaul Bourke <paul.bourke@oracle.com>2015-07-09 17:49:57 +0000
commit7250fd22dc75b9fc203bd3bf6a8f8193297ccc6b (patch)
treecffd03d8975b2fc25d79a97da6d52121b8bb2761
parente7a7cc90178dcc3249e2d444e56c0415fc6ff5c1 (diff)
downloadkolla-7250fd22dc75b9fc203bd3bf6a8f8193297ccc6b.tar.gz
kolla-7250fd22dc75b9fc203bd3bf6a8f8193297ccc6b.zip
Add source base image for oraclelinux
Partially implements: blueprint add-optional-oraclelinux-images Change-Id: I6c350f16c0e394189efa851df3a84d6c6f5699ca
-rw-r--r--docker/ol/source/base/Dockerfile31
l---------docker/ol/source/base/build1
l---------docker/ol/source/base/kolla-common.sh1
l---------docker/ol/source/base/service_hosts.sh1
4 files changed, 34 insertions, 0 deletions
diff --git a/docker/ol/source/base/Dockerfile b/docker/ol/source/base/Dockerfile
new file mode 100644
index 000000000..1dd76d39e
--- /dev/null
+++ b/docker/ol/source/base/Dockerfile
@@ -0,0 +1,31 @@
+FROM oraclelinux:7.1
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+# Dependencies required for building/installing source components
+RUN yum install -y \
+ MySQL-python \
+ gcc \
+ git \
+ libffi-devel \
+ mariadb \
+ openssl \
+ openssl-devel \
+ python-devel \
+ tar \
+ && yum clean all
+
+# TODO(pbourke): replace pip and crux below with rpms once available in Oracle
+# repos
+RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
+ && python get-pip.py \
+ && rm get-pip.py
+
+RUN pip install crudini
+
+RUN curl https://codeload.github.com/larsks/crux/tar.gz/7 -o /crux-7.tar.gz \
+ && tar -xf /crux-7.tar.gz \
+ && pip install -r /crux-7/requirements.txt \
+ && pip install /crux-7 \
+ && rm -rf /crux-7.tar.gz /crux-7
+
+COPY service_hosts.sh kolla-common.sh /opt/kolla/
diff --git a/docker/ol/source/base/build b/docker/ol/source/base/build
new file mode 120000
index 000000000..8d652f7ee
--- /dev/null
+++ b/docker/ol/source/base/build
@@ -0,0 +1 @@
+../../../../tools/build-docker-image \ No newline at end of file
diff --git a/docker/ol/source/base/kolla-common.sh b/docker/ol/source/base/kolla-common.sh
new file mode 120000
index 000000000..c265c62f7
--- /dev/null
+++ b/docker/ol/source/base/kolla-common.sh
@@ -0,0 +1 @@
+../../../common/base/kolla-common.sh \ No newline at end of file
diff --git a/docker/ol/source/base/service_hosts.sh b/docker/ol/source/base/service_hosts.sh
new file mode 120000
index 000000000..06e045440
--- /dev/null
+++ b/docker/ol/source/base/service_hosts.sh
@@ -0,0 +1 @@
+../../../common/base/service_hosts.sh \ No newline at end of file