aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-07-19 11:49:31 +0000
committerGerrit Code Review <review@openstack.org>2015-07-19 11:49:31 +0000
commit6d00f8a64b41c395ec7bed050d5d00327d38a3f9 (patch)
treea2755caa9d25369403ac40d4c3789112d156b469
parentd6e6133182a1a3a0c1c37c2bfef3cc808e0723f9 (diff)
parent75e7490df99bbae584c55b1835b4482c9afcb0ee (diff)
downloadkolla-6d00f8a64b41c395ec7bed050d5d00327d38a3f9.tar.gz
kolla-6d00f8a64b41c395ec7bed050d5d00327d38a3f9.zip
Merge "Add build from source for Magnum"
-rw-r--r--docker/centos/source/magnum/magnum-api/Dockerfile9
l---------docker/centos/source/magnum/magnum-api/build1
l---------docker/centos/source/magnum/magnum-api/check.sh1
l---------docker/centos/source/magnum/magnum-api/config-external.sh1
l---------docker/centos/source/magnum/magnum-api/config-internal.sh1
l---------docker/centos/source/magnum/magnum-api/start.sh1
-rw-r--r--docker/centos/source/magnum/magnum-base/.buildinfo10
-rw-r--r--docker/centos/source/magnum/magnum-base/Dockerfile15
l---------docker/centos/source/magnum/magnum-base/build1
l---------docker/centos/source/magnum/magnum-base/config-magnum.sh1
-rw-r--r--docker/centos/source/magnum/magnum-conductor/Dockerfile11
l---------docker/centos/source/magnum/magnum-conductor/build1
l---------docker/centos/source/magnum/magnum-conductor/config-external.sh1
l---------docker/centos/source/magnum/magnum-conductor/config-internal.sh1
l---------docker/centos/source/magnum/magnum-conductor/start.sh1
15 files changed, 56 insertions, 0 deletions
diff --git a/docker/centos/source/magnum/magnum-api/Dockerfile b/docker/centos/source/magnum/magnum-api/Dockerfile
new file mode 100644
index 000000000..2173a7b42
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-api/Dockerfile
@@ -0,0 +1,9 @@
+FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%magnum-base:%%KOLLA_TAG%%
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+COPY ./start.sh /start.sh
+COPY ./check.sh /check.sh
+
+COPY config-internal.sh config-external.sh /opt/kolla/
+
+CMD ["/start.sh"]
diff --git a/docker/centos/source/magnum/magnum-api/build b/docker/centos/source/magnum/magnum-api/build
new file mode 120000
index 000000000..ec1913803
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-api/build
@@ -0,0 +1 @@
+../../../../../tools/build-docker-image \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-api/check.sh b/docker/centos/source/magnum/magnum-api/check.sh
new file mode 120000
index 000000000..7464ba296
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-api/check.sh
@@ -0,0 +1 @@
+../../../../common/magnum/magnum-api/check.sh \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-api/config-external.sh b/docker/centos/source/magnum/magnum-api/config-external.sh
new file mode 120000
index 000000000..746e2aa58
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-api/config-external.sh
@@ -0,0 +1 @@
+../../../../common/magnum/magnum-api/config-external.sh \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-api/config-internal.sh b/docker/centos/source/magnum/magnum-api/config-internal.sh
new file mode 120000
index 000000000..7f9cace39
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-api/config-internal.sh
@@ -0,0 +1 @@
+../../../../common/magnum/magnum-api/config-internal.sh \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-api/start.sh b/docker/centos/source/magnum/magnum-api/start.sh
new file mode 120000
index 000000000..58cc9e37c
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-api/start.sh
@@ -0,0 +1 @@
+../../../../common/magnum/magnum-api/start.sh \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-base/.buildinfo b/docker/centos/source/magnum/magnum-base/.buildinfo
new file mode 100644
index 000000000..08a89ea8d
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-base/.buildinfo
@@ -0,0 +1,10 @@
+# Build info specific to this image. All values can be overridden in .buildconf
+
+COMPONENT=magnum
+SOURCE_INSTALL_AVAILABLE=1
+
+# Used for git install method
+: ${CLONE_FROM:=https://github.com/openstack/magnum}
+
+# Used for curl install method
+: ${TARBALL_URI:=http://tarballs.openstack.org/magnum/magnum-2015.1.1.tar.gz}
diff --git a/docker/centos/source/magnum/magnum-base/Dockerfile b/docker/centos/source/magnum/magnum-base/Dockerfile
new file mode 100644
index 000000000..0962e08d2
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-base/Dockerfile
@@ -0,0 +1,15 @@
+FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+ADD ./magnum.tar /
+RUN ln -s /magnum-* /magnum
+
+RUN cd /magnum \
+ && useradd --user-group magnum \
+ && pip install -r requirements.txt \
+ && pip install /magnum \
+ && mkdir /etc/magnum /var/log/magnum \
+ && cp -r /magnum/etc/* /etc/magnum/
+
+RUN mkdir -p /opt/kolla
+COPY config-magnum.sh /opt/kolla/config-magnum.sh
diff --git a/docker/centos/source/magnum/magnum-base/build b/docker/centos/source/magnum/magnum-base/build
new file mode 120000
index 000000000..ec1913803
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-base/build
@@ -0,0 +1 @@
+../../../../../tools/build-docker-image \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-base/config-magnum.sh b/docker/centos/source/magnum/magnum-base/config-magnum.sh
new file mode 120000
index 000000000..473c0be8e
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-base/config-magnum.sh
@@ -0,0 +1 @@
+../../../../common/magnum/magnum-base/config-magnum.sh \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-conductor/Dockerfile b/docker/centos/source/magnum/magnum-conductor/Dockerfile
new file mode 100644
index 000000000..72de63888
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-conductor/Dockerfile
@@ -0,0 +1,11 @@
+FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%magnum-base:%%KOLLA_TAG%%
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+# Install kubectl binary (ugh)
+RUN cd /tmp && curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.15.0/kubernetes.tar.gz -o /tmp/kubernetes.tar.gz && /usr/bin/tar -xzvf /tmp/kubernetes.tar.gz && cp -a /tmp/kubernetes/platforms/linux/amd64/kubectl /usr/bin/kubectl && rm -rf /tmp/kubernetes
+
+COPY ./start.sh /start.sh
+
+COPY config-internal.sh config-external.sh /opt/kolla/
+
+CMD ["/start.sh"]
diff --git a/docker/centos/source/magnum/magnum-conductor/build b/docker/centos/source/magnum/magnum-conductor/build
new file mode 120000
index 000000000..ec1913803
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-conductor/build
@@ -0,0 +1 @@
+../../../../../tools/build-docker-image \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-conductor/config-external.sh b/docker/centos/source/magnum/magnum-conductor/config-external.sh
new file mode 120000
index 000000000..2d3f514d5
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-conductor/config-external.sh
@@ -0,0 +1 @@
+../../../../common/magnum/magnum-conductor/config-external.sh \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-conductor/config-internal.sh b/docker/centos/source/magnum/magnum-conductor/config-internal.sh
new file mode 120000
index 000000000..1d8f73aa9
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-conductor/config-internal.sh
@@ -0,0 +1 @@
+../../../../common/magnum/magnum-conductor/config-internal.sh \ No newline at end of file
diff --git a/docker/centos/source/magnum/magnum-conductor/start.sh b/docker/centos/source/magnum/magnum-conductor/start.sh
new file mode 120000
index 000000000..681863036
--- /dev/null
+++ b/docker/centos/source/magnum/magnum-conductor/start.sh
@@ -0,0 +1 @@
+../../../../common/magnum/magnum-conductor/start.sh \ No newline at end of file