aboutsummaryrefslogtreecommitdiff
path: root/docker/centos/source/nova/nova-base
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-07-25 19:44:46 +0000
committerGerrit Code Review <review@openstack.org>2015-07-25 19:44:46 +0000
commitcac10122b568d69f550435ccd5f9b1744849d00d (patch)
treee9c7c4ed71366015431d268b7008e78e6631520e /docker/centos/source/nova/nova-base
parentf96f114ad72f34b177361872364098c8574887d0 (diff)
parent48b922cba4e3ee03aa906d38a7fe780050c7151b (diff)
downloadkolla-cac10122b568d69f550435ccd5f9b1744849d00d.tar.gz
kolla-cac10122b568d69f550435ccd5f9b1744849d00d.zip
Merge "Add build from source for Nova"
Diffstat (limited to 'docker/centos/source/nova/nova-base')
-rw-r--r--docker/centos/source/nova/nova-base/.buildinfo11
-rw-r--r--docker/centos/source/nova/nova-base/Dockerfile26
l---------docker/centos/source/nova/nova-base/build1
l---------docker/centos/source/nova/nova-base/config-nova.sh1
4 files changed, 39 insertions, 0 deletions
diff --git a/docker/centos/source/nova/nova-base/.buildinfo b/docker/centos/source/nova/nova-base/.buildinfo
new file mode 100644
index 000000000..9c548476f
--- /dev/null
+++ b/docker/centos/source/nova/nova-base/.buildinfo
@@ -0,0 +1,11 @@
+# Build info specific to this image. All values can be overridden in .buildconf
+
+SOURCE_INSTALL_METHOD=curl
+COMPONENT=nova
+SOURCE_INSTALL_AVAILABLE=1
+
+# Used for git install method
+: ${CLONE_FROM:=https://github.com/openstack/nova}
+
+# Used for curl install method
+: ${TARBALL_URI:=http://tarballs.openstack.org/nova/nova-master.tar.gz}
diff --git a/docker/centos/source/nova/nova-base/Dockerfile b/docker/centos/source/nova/nova-base/Dockerfile
new file mode 100644
index 000000000..f9aca91f0
--- /dev/null
+++ b/docker/centos/source/nova/nova-base/Dockerfile
@@ -0,0 +1,26 @@
+FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+RUN yum -y install \
+ bridge-utils \
+ && yum clean all
+
+RUN pip install \
+ python-cinderclient \
+ python-keystoneclient
+
+ADD ./nova.tar /
+RUN ln -s /nova-* /nova
+
+RUN cd /nova \
+ && useradd --user-group nova \
+ && pip install -r requirements.txt \
+ && pip install /nova \
+ && tox -egenconfig \
+ && mkdir /etc/nova /var/log/nova \
+ && cp /nova/etc/nova/nova.conf.sample /etc/nova/nova.conf \
+ && cp -r /nova/etc/nova/* /etc/nova/ \
+ && chown -R nova: /etc/nova /var/log/nova \
+ && rm -rf /root/.cache
+
+COPY config-nova.sh /opt/kolla/config-nova.sh
diff --git a/docker/centos/source/nova/nova-base/build b/docker/centos/source/nova/nova-base/build
new file mode 120000
index 000000000..ec1913803
--- /dev/null
+++ b/docker/centos/source/nova/nova-base/build
@@ -0,0 +1 @@
+../../../../../tools/build-docker-image \ No newline at end of file
diff --git a/docker/centos/source/nova/nova-base/config-nova.sh b/docker/centos/source/nova/nova-base/config-nova.sh
new file mode 120000
index 000000000..c27bef695
--- /dev/null
+++ b/docker/centos/source/nova/nova-base/config-nova.sh
@@ -0,0 +1 @@
+../../../../common/nova/nova-base/config-nova.sh \ No newline at end of file