Andy Bavier | 31d95b8 | 2018-05-04 09:46:02 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | # Neutron 'newton' image with ONOS ML2 plugin installed |
| 17 | |
| 18 | FROM openstackhelm/neutron:newton |
| 19 | |
| 20 | RUN apt update && apt install -y git python-pip && \ |
| 21 | cd /srv && \ |
| 22 | git clone https://github.com/openstack/networking-onos.git -b stable/newton && \ |
| 23 | cd networking-onos && \ |
| 24 | python setup.py install && \ |
| 25 | cd /srv && \ |
| 26 | git clone https://github.com/openstack/requirements.git -b stable/newton && \ |
| 27 | sed -i -e 's/neutron-lib===0.4.0/neutron-lib===1.1.0/g' requirements/upper-constraints.txt && \ |
| 28 | sudo pip install -U -t /var/lib/openstack/lib/python2.7/site-packages/ -c requirements/upper-constraints.txt neutron-lib && \ |
| 29 | rm -rf networking-onos requirements && \ |
| 30 | rm -rf /var/lib/apt/lists/* |