Pin to Ubuntu 16.04

Upgrade Ubuntu base image to Xenial

Closes-Bug: #1593599
Change-Id: I5832a729a9a4fa73c02442047c92ba088ce20db3
This commit is contained in:
Jeffrey Zhang 2016-06-14 21:50:04 +08:00
parent 2e0c5ecbf8
commit 04d6736e89
7 changed files with 21 additions and 14 deletions

View File

@ -202,15 +202,17 @@ COPY apt_preferences.{{ base_distro }} /etc/apt/preferences
{% set base_apt_packages = [ {% set base_apt_packages = [
'curl', 'curl',
'gawk', 'gawk',
'kmod',
'lvm2', 'lvm2',
'open-iscsi', 'open-iscsi',
'python', 'python',
'sudo',
'tgt'] 'tgt']
%} %}
{% if base_distro == 'ubuntu' %} {% if base_distro == 'ubuntu' %}
{% set base_apt_keys = [ {% set base_apt_keys = [
'199369E5404BD5FC7D2FE43BCBCB082A1BB943DB', '0xF1656F24C74CD1D8',
'391A9AA2147192839E9DB0315EDB1B62EC4926EA', '391A9AA2147192839E9DB0315EDB1B62EC4926EA',
'430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A', '430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A',
'08B73419AC32B4E966C1A330E84AC2C0460F3994', '08B73419AC32B4E966C1A330E84AC2C0460F3994',

View File

@ -1,23 +1,23 @@
# Default repos # Default repos
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
# Backports have a lower priority and must be explicitly installed to be used # Backports have a lower priority and must be explicitly installed to be used
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# We need to add the Liberty repo for the updated packages they provide. The main # We need to add the Liberty repo for the updated packages they provide. The main
# ones are qemu, libvirt, and openvswitch. # ones are qemu, libvirt, and openvswitch.
deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/mitaka main deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/newton main
# MariaDB 10.0 repo # MariaDB 10.0 repo
deb http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu trusty main deb http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu xenial main
# Percona repo (for xtrabackup) # Percona repo (for xtrabackup)
deb http://repo.percona.com/apt trusty main deb http://repo.percona.com/apt xenial main
# Ceph repo # Ceph repo
deb http://download.ceph.com/debian-hammer/ trusty main deb http://download.ceph.com/debian-hammer/ xenial main
# Elastic repo # Elastic repo
deb http://packages.elastic.co/elasticsearch/2.x/debian stable main deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
@ -26,7 +26,7 @@ deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
deb http://packages.elastic.co/kibana/4.4/debian stable main deb http://packages.elastic.co/kibana/4.4/debian stable main
# Docker repo # Docker repo
deb http://apt.dockerproject.org/repo ubuntu-trusty main deb http://apt.dockerproject.org/repo ubuntu-xenial main
# InfluxDB repo # InfluxDB repo
deb https://repos.influxdata.com/ubuntu trusty stable deb https://repos.influxdata.com/ubuntu xenial stable

View File

@ -13,11 +13,11 @@ ENV JAVA_HOME /usr/lib/jvm/jre-1.7.0-openjdk/
{% elif base_distro in ['ubuntu', 'debian'] %} {% elif base_distro in ['ubuntu', 'debian'] %}
{% set elasticsearch_packages = [ {% set elasticsearch_packages = [
'openjdk-7-jre', 'openjdk-8-jre',
'elasticsearch' 'elasticsearch'
] %} ] %}
ENV JAVA_HOME /usr/lib/jvm/java-1.7.0-openjdk-amd64/ ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
{% endif %} {% endif %}

View File

@ -45,6 +45,7 @@ RUN apt-get -y install --no-install-recommends \
conntrack \ conntrack \
dnsmasq \ dnsmasq \
dnsmasq-utils \ dnsmasq-utils \
iproute2 \
ipset \ ipset \
iptables \ iptables \
openvswitch-switch \ openvswitch-switch \

View File

@ -34,6 +34,7 @@ RUN yum -y install \
RUN apt-get -y install --no-install-recommends \ RUN apt-get -y install --no-install-recommends \
iptables \ iptables \
iproute2 \
ebtables \ ebtables \
dnsmasq \ dnsmasq \
bridge-utils \ bridge-utils \

View File

@ -24,7 +24,7 @@ DISTRO_RELEASE = {
'redhat': '7', 'redhat': '7',
'oraclelinux': '7', 'oraclelinux': '7',
'debian': '8', 'debian': '8',
'ubuntu': '14.04', 'ubuntu': '16.04',
} }
DELOREAN = ("http://buildlogs.centos.org/centos/7/cloud/x86_64/" DELOREAN = ("http://buildlogs.centos.org/centos/7/cloud/x86_64/"
"rdo-trunk-master-tested/delorean.repo") "rdo-trunk-master-tested/delorean.repo")

View File

@ -0,0 +1,3 @@
---
features:
- Upgrade Ubuntu base image to Xenial