openstack-helm/tools/images/openvswitch/Dockerfile
portdirect 482d9db0c3 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
2018-02-17 22:49:19 +00:00

57 lines
1.4 KiB
Docker

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 ;\