libmemif: refactor examples

- icmp_responder: responds to ICMPv4 and ARP requests
- loopback: connects two interfaces and sends a
  verification packet from master memif to slave memif
  where it is looped back
- loopback (reverse path): reverses direction of packet
  in loopback application (slave memif to master memif)

Type: refactor

Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: Ie90aaa3367269408efb6c5d538ad5aa827432238
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
diff --git a/extras/libmemif/dockerfile b/extras/libmemif/dockerfile
index 81012b0..c80ca5b 100644
--- a/extras/libmemif/dockerfile
+++ b/extras/libmemif/dockerfile
@@ -1,20 +1,20 @@
 FROM ubuntu:xenial
 
 RUN apt-get update && \
-	apt-get install -y git build-essential autoconf pkg-config libtool sudo check
+	apt-get install -y git build-essential autoconf pkg-config libtool sudo
 RUN rm -rf /var/lib/apt/lists/*
 
 RUN mkdir /libmemif
 ADD . /libmemif
 WORKDIR /libmemif
 
-RUN ./bootstrap
-RUN ./configure
+RUN mkdir build
+RUN cmake ..
+WORKDIR /libmemif/build
 RUN make
-RUN make install
 
 RUN mkdir /run/vpp
 
 RUN ulimit -c unlimited
 
-CMD ./.libs/icmpr-epoll
+CMD ./examples/icmp_responder