From ccd788de6e2c52eb929e8d62b72966c5fb3e52c8 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Mon, 16 Jan 2017 22:15:16 +0800 Subject: [PATCH] install ansible from pypi in bifrost There are some bug in installing Ansible from source in bifrost, and install fro pypi is more stable. Change-Id: Ib51979fabbf57627179e657e35a3bbbdb13b552b --- docker/bifrost/bifrost-base/Dockerfile.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/bifrost/bifrost-base/Dockerfile.j2 b/docker/bifrost/bifrost-base/Dockerfile.j2 index 2a79b0baa0..4d46ff784b 100644 --- a/docker/bifrost/bifrost-base/Dockerfile.j2 +++ b/docker/bifrost/bifrost-base/Dockerfile.j2 @@ -8,6 +8,9 @@ MAINTAINER {{ maintainer }} RUN echo '{{ install_type }} not yet available for {{ base_distro }}' && /bin/false {% elif install_type == 'source' %} + +ENV ANSIBLE_FROM_PYPI True + ADD bifrost-base-archive /bifrost-base-source COPY build_arg.yml /tmp/build_arg.yml RUN ln -s bifrost-base-source/* bifrost \ @@ -21,7 +24,7 @@ RUN sed -e "s/.*mariadb.*//Ig" -i /etc/apt/sources.list && apt-get purge -y mari {% endif %} -RUN bash -c './scripts/env-setup.sh && source ./env-vars && source /opt/stack/ansible/hacking/env-setup && \ +RUN bash -c './scripts/env-setup.sh && source ./env-vars && \ ansible-playbook -vvvv -i /bifrost/playbooks/inventory/localhost /bifrost/playbooks/install.yaml \ -e @/tmp/build_arg.yml && \ {% if base_distro in ['ubuntu', 'debian'] %}