OpenvSwitch: Move to lightweight OvS 2.8.1 image
This PS moves to use a lightweight build of OvS 2.8.1 using the offical k8s network base image. Change-Id: Ieea624b6253754bfc875eca5af402944ab97c7f3
This commit is contained in:
parent
96ca93521d
commit
482d9db0c3
@ -21,8 +21,8 @@ release_group: null
|
|||||||
|
|
||||||
images:
|
images:
|
||||||
tags:
|
tags:
|
||||||
openvswitch_db_server: docker.io/kolla/ubuntu-source-openvswitch-db-server:3.0.3
|
openvswitch_db_server: docker.io/openstackhelm/openvswitch:v2.8.1
|
||||||
openvswitch_vswitchd: docker.io/kolla/ubuntu-source-openvswitch-vswitchd:3.0.3
|
openvswitch_vswitchd: docker.io/openstackhelm/openvswitch:v2.8.1
|
||||||
dep_check: quay.io/stackanetes/kubernetes-entrypoint:v0.2.1
|
dep_check: quay.io/stackanetes/kubernetes-entrypoint:v0.2.1
|
||||||
pull_policy: "IfNotPresent"
|
pull_policy: "IfNotPresent"
|
||||||
|
|
||||||
|
56
tools/images/openvswitch/Dockerfile
Normal file
56
tools/images/openvswitch/Dockerfile
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
FROM k8s.gcr.io/debian-iptables-amd64:v10
|
||||||
|
MAINTAINER pete.birley@att.com
|
||||||
|
|
||||||
|
ARG OVS_VERSION=2.8.1
|
||||||
|
|
||||||
|
RUN set -ex ;\
|
||||||
|
export DEBIAN_FRONTEND=noninteractive ;\
|
||||||
|
apt-get update ;\
|
||||||
|
apt-get upgrade -y ;\
|
||||||
|
apt-get install --no-install-recommends -y \
|
||||||
|
bash ;\
|
||||||
|
apt-get install --no-install-recommends -y \
|
||||||
|
build-essential \
|
||||||
|
curl \
|
||||||
|
libatomic1 \
|
||||||
|
libssl1.1 \
|
||||||
|
openssl \
|
||||||
|
uuid-runtime \
|
||||||
|
graphviz \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
bzip2 \
|
||||||
|
debhelper \
|
||||||
|
dh-autoreconf \
|
||||||
|
libssl-dev \
|
||||||
|
libtool \
|
||||||
|
python-all \
|
||||||
|
python-six \
|
||||||
|
python-twisted-conch \
|
||||||
|
python-zopeinterface ;\
|
||||||
|
TMP_DIR=$(mktemp -d) ;\
|
||||||
|
curl -sSL http://openvswitch.org/releases/openvswitch-${OVS_VERSION}.tar.gz | tar xz -C ${TMP_DIR} --strip-components=1 ;\
|
||||||
|
cd ${TMP_DIR} ;\
|
||||||
|
./boot.sh ;\
|
||||||
|
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc ;\
|
||||||
|
make ;\
|
||||||
|
make install ;\
|
||||||
|
cd / ;\
|
||||||
|
rm -rf ${TMP_DIR} ;\
|
||||||
|
apt-get purge --auto-remove -y \
|
||||||
|
build-essential \
|
||||||
|
curl \
|
||||||
|
graphviz \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
bzip2 \
|
||||||
|
debhelper \
|
||||||
|
dh-autoreconf \
|
||||||
|
libssl-dev \
|
||||||
|
libtool \
|
||||||
|
python-all \
|
||||||
|
python-six \
|
||||||
|
python-twisted-conch \
|
||||||
|
python-zopeinterface ;\
|
||||||
|
clean-install \
|
||||||
|
iproute2 ;\
|
39
tools/images/openvswitch/README.rst
Normal file
39
tools/images/openvswitch/README.rst
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
OpenvSwitch Container
|
||||||
|
=====================
|
||||||
|
|
||||||
|
This container builds a small image with OpenvSwitch.
|
||||||
|
|
||||||
|
Instructions
|
||||||
|
------------
|
||||||
|
|
||||||
|
OS Specific Host setup:
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Ubuntu:
|
||||||
|
^^^^^^^
|
||||||
|
|
||||||
|
From a freshly provisioned Ubuntu 16.04 LTS host run:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt-get install -y \
|
||||||
|
docker.io \
|
||||||
|
git
|
||||||
|
|
||||||
|
Build the VBMC Image environment
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
A known good image is published to dockerhub on a fairly regular basis, but if
|
||||||
|
you wish to build your own image, from the root directory of the OpenStack-Helm
|
||||||
|
repo run:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
OVS_VERSION=2.8.1
|
||||||
|
sudo docker build \
|
||||||
|
--network=host \
|
||||||
|
--build-arg OVS_VERSION="${OVS_VERSION}" \
|
||||||
|
-t docker.io/openstackhelm/openvswitch:v${OVS_VERSION} \
|
||||||
|
tools/images/openvswitch
|
||||||
|
sudo docker push docker.io/openstackhelm/openvswitch:v${OVS_VERSION}
|
@ -69,6 +69,8 @@ images:
|
|||||||
nova_scheduler: 'docker.io/kolla/ubuntu-source-nova-scheduler:3.0.3'
|
nova_scheduler: 'docker.io/kolla/ubuntu-source-nova-scheduler:3.0.3'
|
||||||
nova_spiceproxy: 'docker.io/kolla/ubuntu-source-nova-spicehtml5proxy:3.0.3'
|
nova_spiceproxy: 'docker.io/kolla/ubuntu-source-nova-spicehtml5proxy:3.0.3'
|
||||||
nova_spiceproxy_assets: 'docker.io/kolla/ubuntu-source-nova-spicehtml5proxy:3.0.3'
|
nova_spiceproxy_assets: 'docker.io/kolla/ubuntu-source-nova-spicehtml5proxy:3.0.3'
|
||||||
|
openvswitch_db_server: 'docker.io/kolla/ubuntu-source-openvswitch-db-server:3.0.3'
|
||||||
|
openvswitch_vswitchd: 'docker.io/kolla/ubuntu-source-openvswitch-vswitchd:3.0.3'
|
||||||
scripted_test: 'docker.io/kolla/ubuntu-source-heat-engine:3.0.3'
|
scripted_test: 'docker.io/kolla/ubuntu-source-heat-engine:3.0.3'
|
||||||
senlin_api: 'docker.io/kolla/ubuntu-source-senlin-api:3.0.3'
|
senlin_api: 'docker.io/kolla/ubuntu-source-senlin-api:3.0.3'
|
||||||
senlin_db_sync: 'docker.io/kolla/ubuntu-source-senlin-api:3.0.3'
|
senlin_db_sync: 'docker.io/kolla/ubuntu-source-senlin-api:3.0.3'
|
||||||
|
Loading…
Reference in New Issue
Block a user