From 2af83114bfe08278ea4c58232e6ed8703ad82f9a Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 12 Jul 2017 00:52:24 +0200 Subject: [PATCH] fix: symlink libnl's search path for tc netem distributions --- Dockerfile.dev | 3 +++ Dockerfile.dev-ubuntu | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile.dev b/Dockerfile.dev index a50f23a22..6c004d252 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -79,6 +79,9 @@ RUN dnf -y install \ COPY thirdparty/criterion /tmp/criterion RUN mkdir -p /tmp/criterion/build && cd /tmp/criterion/build && cmake -DCMAKE_INSTALL_LIBDIR=/usr/local/lib64 .. && make install && rm -rf /tmp/* +# Workaround for libnl3's search path for netem distributions +RUN ln -s /usr/lib64/tc /usr/lib/tc + # Expose ports for HTTP and WebSocket frontend EXPOSE 80 EXPOSE 443 diff --git a/Dockerfile.dev-ubuntu b/Dockerfile.dev-ubuntu index a9d860739..461653afa 100644 --- a/Dockerfile.dev-ubuntu +++ b/Dockerfile.dev-ubuntu @@ -95,6 +95,9 @@ EXPOSE 443 ENV LD_LIBRARY_PATH /usr/local/lib:/usr/local/lib64 +# Workaround for libnl3's search path for netem distributions +RUN ln -s /usr/lib64/tc /usr/lib/tc + ENTRYPOINT villas WORKDIR /villas ENTRYPOINT bash