Making docker.host.internal resolvable in Docker for Linux
Change-Id: Icc74d1aeccf44f68b785b786cae8eafe65700e66
diff --git a/Dockerfile b/Dockerfile
index 92fc209..6a93503 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,9 @@
bzip2 \
build-essential \
curl \
- unzip
+ unzip \
+ iproute2
+
RUN apt-get update && apt-get install -y ${BUILD_DEPS}
# Install Bazel
@@ -65,6 +67,13 @@
COPY --from=builder /output/ /root/onos/
WORKDIR /root/onos
+# Add ip command
+COPY --from=builder /bin/ip /bin/
+COPY --from=builder /lib/x86_64-linux-gnu/libmnl.so* /lib/x86_64-linux-gnu/
+COPY --from=builder /usr/lib/x86_64-linux-gnu/libelf.so* /lib/x86_64-linux-gnu/
+COPY --from=builder /sbin/ip /sbin/
+RUN ldconfig
+
# Set JAVA_HOME (by default not exported by zulu images)
ARG JDK_VER
ENV JAVA_HOME /usr/lib/jvm/zulu-${JDK_VER}-amd64