diff options
| author | Eduardo Gonzalez <dabarren@gmail.com> | 2017-06-12 12:49:53 +0200 |
|---|---|---|
| committer | Eduardo Gonzalez <dabarren@gmail.com> | 2017-06-28 13:03:18 +0100 |
| commit | 8008001099c2f973d7c2ed52baa5b7a7fa8dceb1 (patch) | |
| tree | 711e4cb01dfe2c1faace06adaa18e6b0ca3374c3 /docker/opendaylight | |
| parent | 06d84707ad7eb1cebbf03cc663f08b4b3dfb08fa (diff) | |
| download | kolla-8008001099c2f973d7c2ed52baa5b7a7fa8dceb1.tar.gz kolla-8008001099c2f973d7c2ed52baa5b7a7fa8dceb1.zip | |
Point ubuntu ODL repos to PPA's
PPA repos are maintained by odl-team rather than current
repos under an individual namespace.
Change-Id: I282f81e802df5ec2a0690fff4a37da07275e2d42
Diffstat (limited to 'docker/opendaylight')
| -rw-r--r-- | docker/opendaylight/Dockerfile.j2 | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/docker/opendaylight/Dockerfile.j2 b/docker/opendaylight/Dockerfile.j2 index 311f8ffdc..7551c3ce7 100644 --- a/docker/opendaylight/Dockerfile.j2 +++ b/docker/opendaylight/Dockerfile.j2 @@ -16,23 +16,19 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% endif %} COPY {{ opendaylight_repo }} /etc/yum.repos.d/ - {% elif base_distro in ['ubuntu', 'debian'] %} - {% if odl_release_deb_url is not defined %} - {% if base_distro in 'ubuntu' %} - {% set odl_release_deb_url = 'http://download.opensuse.org/repositories/home:/akshitajha/xUbuntu_16.04/' %} - {% elif base_distro in 'debian' %} - {% set odl_release_deb_url = 'http://download.opensuse.org/repositories/home:/akshitajha/Debian_8.0/' %} - {% endif %} - {% endif %} + {% elif base_distro in ['debian', 'ubuntu'] %} + {% if base_distro in 'debian' %} + {% if odl_release_deb_url is not defined %} + {% set odl_release_deb_url = 'http://download.opensuse.org/repositories/home:/akshitajha/Debian_8.0/' %} + {% endif %} RUN sh -c "echo 'deb {{ odl_release_deb_url }} /' > /etc/apt/sources.list.d/opendaylight.list" + {% endif %} # NOTE(egonzalez): ODL fails to install in debian family images with # existing odl user. First install odl and then allow usage of # install_packages macro for custom configs. {% block debian_opendaylight_install_fix_block %} - {% if base_distro in ['debian', 'ubuntu'] %} - {{ macros.debian_opendaylight_existing_user_fix() }} - {% endif %} + {{ macros.debian_opendaylight_existing_user_fix() }} {% endblock %} {% endif %} |
