Make container dind unpin old docker relase

- remove pinning to old docker version in ubuntu
- move docker ubuntu repository to base image

Change-Id: If05ccc0c5b3e89725acea3b603b5ef7acbbee649
Partially-implements: blueprint build-debian
This commit is contained in:
Benedikt Trefzer 2016-03-24 23:45:58 +01:00
parent 31089795da
commit 190ae5957c
3 changed files with 6 additions and 4 deletions

View File

@ -212,6 +212,7 @@ COPY apt_preferences.{{ base_distro }} /etc/apt/preferences
'430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A', '430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A',
'08B73419AC32B4E966C1A330E84AC2C0460F3994', '08B73419AC32B4E966C1A330E84AC2C0460F3994',
'46095ACC8548582C1A2699A9D27D666CD88E42B4', '46095ACC8548582C1A2699A9D27D666CD88E42B4',
'58118E89F3A912897C070ADBF76221572C52609D',
] %} ] %}
{% elif base_distro == 'debian' %} {% elif base_distro == 'debian' %}
{% set keys = [ {% set keys = [

View File

@ -24,3 +24,6 @@ deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
# Kibana repo # Kibana repo
deb http://packages.elastic.co/kibana/4.4/debian stable main deb http://packages.elastic.co/kibana/4.4/debian stable main
# Docker repo
deb http://apt.dockerproject.org/repo ubuntu-trusty main

View File

@ -10,12 +10,10 @@ RUN /bin/true
{% elif base_distro in ['ubuntu', 'debian'] %} {% elif base_distro in ['ubuntu', 'debian'] %}
RUN echo 'deb http://apt.dockerproject.org/repo ubuntu-trusty main' > /etc/apt/sources.list.d/docker.list \ RUN apt-get update \
&& apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D \
&& apt-get update \
&& apt-get -y install --no-install-recommends \ && apt-get -y install --no-install-recommends \
btrfs-tools \ btrfs-tools \
docker-engine=1.8.2-0~trusty \ docker-engine \
openssh-server \ openssh-server \
&& apt-get clean \ && apt-get clean \
&& pip --no-cache-dir install --upgrade docker-py && pip --no-cache-dir install --upgrade docker-py