cda0459ad1
There were some inconsistencies with pip install instructions thoughout Kolla. We fix those here. Additionally, we fix the virtualenv to properly use the site-packages on the host if a library is not available in the venv. Change-Id: Ib84d48e8826bb96060338b3fa0782620c98794a8 Related-Bug: #1524684 Closes-Bug: #1529434
29 lines
1.0 KiB
Django/Jinja
29 lines
1.0 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
# Since the gate cannot do DinD on centos due to the age of the kernel, we don't
|
|
# build a true DinD image. Should the time come that we get a newer kernel in
|
|
# the centos gate and we want to do multinode we can populate this container
|
|
RUN /bin/true
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN echo 'deb http://apt.dockerproject.org/repo ubuntu-trusty main' > /etc/apt/sources.list.d/docker.list \
|
|
&& apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
btrfs-tools \
|
|
docker-engine=1.8.2-0~trusty \
|
|
openssh-server \
|
|
&& apt-get clean \
|
|
&& pip --no-cache-dir install --upgrade docker-py
|
|
|
|
{% endif %}
|
|
|
|
COPY start.sh /usr/local/bin/kolla_start
|
|
RUN chmod 755 /usr/local/bin/kolla_start
|
|
|
|
{{ include_footer }}
|