aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-08-27 10:35:07 +0000
committerSam Yaple <sam@yaple.net>2015-08-27 11:04:35 +0000
commitce54b56cb3f47c812cce8f80fbc1463b0b2e620b (patch)
tree833e8e6a8ba60772ef19fb97fe12edb4ab247f3d
parenteecf6581a47745d53298c4efa5af6c411afa6260 (diff)
downloadkolla-ce54b56cb3f47c812cce8f80fbc1463b0b2e620b.tar.gz
kolla-ce54b56cb3f47c812cce8f80fbc1463b0b2e620b.zip
Unify Centos and Ubuntu Source Install - Magnum
A change merged in the base allows for Centos and Ubuntu to install all python things to the same locations. This updates the source section to reflect that change. Change-Id: Ie09a6e3d04af792539bdabe1310de6bad3ecccee Partially-Implements: blueprint install-from-ubuntu
l---------docker_templates/magnum/magnum-api/build1
-rw-r--r--docker_templates/magnum/magnum-base/Dockerfile.j213
l---------docker_templates/magnum/magnum-base/build1
l---------docker_templates/magnum/magnum-conductor/build1
4 files changed, 5 insertions, 11 deletions
diff --git a/docker_templates/magnum/magnum-api/build b/docker_templates/magnum/magnum-api/build
deleted file mode 120000
index 43944faa0..000000000
--- a/docker_templates/magnum/magnum-api/build
+++ /dev/null
@@ -1 +0,0 @@
-../../../tools/build-docker-image \ No newline at end of file
diff --git a/docker_templates/magnum/magnum-base/Dockerfile.j2 b/docker_templates/magnum/magnum-base/Dockerfile.j2
index b955329f0..59c22f57e 100644
--- a/docker_templates/magnum/magnum-base/Dockerfile.j2
+++ b/docker_templates/magnum/magnum-base/Dockerfile.j2
@@ -18,15 +18,12 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
-ADD ./magnum.tar /
-RUN ln -s /magnum-* /magnum
-
-RUN cd /magnum \
+ADD magnum.tar /
+RUN ln -s /magnum-* magnum \
&& useradd --user-group magnum \
- && pip install -r requirements.txt \
- && pip install /magnum \
- && mkdir /etc/magnum /var/log/magnum \
+ && pip --no-cache-dir install /magnum \
+ && mkdir -p /etc/magnum /var/log/magnum /home/magnum \
&& cp -r /magnum/etc/* /etc/magnum/ \
- && rm -rf /root/.cache
+ && chown -R magnum: /etc/magnum /var/log/magnum /home/magnum
{% endif %}
diff --git a/docker_templates/magnum/magnum-base/build b/docker_templates/magnum/magnum-base/build
deleted file mode 120000
index 43944faa0..000000000
--- a/docker_templates/magnum/magnum-base/build
+++ /dev/null
@@ -1 +0,0 @@
-../../../tools/build-docker-image \ No newline at end of file
diff --git a/docker_templates/magnum/magnum-conductor/build b/docker_templates/magnum/magnum-conductor/build
deleted file mode 120000
index 43944faa0..000000000
--- a/docker_templates/magnum/magnum-conductor/build
+++ /dev/null
@@ -1 +0,0 @@
-../../../tools/build-docker-image \ No newline at end of file