From 01e5b8c6ee5ec743962301b1337219b5e3850ab5 Mon Sep 17 00:00:00 2001 From: "Sridhar K. N. Rao" Date: Mon, 22 Nov 2021 18:07:01 +0530 Subject: TOOLS: Fix bugs in container builds. There are bugs in l2l3fwd and pktgen dockerfiles. This patch fixes it. Signed-off-by: Sridhar K. N. Rao Change-Id: I15cfb74d2bf26fbe9e7c2c9b147764fa7cec24c8 --- tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/Dockerfile | 1 - tools/docker/test-containers/trafficgen-pods/pktgen/Dockerfile | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/docker') diff --git a/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/Dockerfile b/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/Dockerfile index c56e45cf..4bf4a0a9 100644 --- a/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/Dockerfile +++ b/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/Dockerfile @@ -77,7 +77,6 @@ FROM centos COPY --from=0 /usr/bin/dpdk-app /usr/bin/dpdk-app COPY --from=0 /usr/bin/l2fwd /usr/bin/l2fwd COPY --from=0 /usr/bin/l3fwd /usr/bin/l3fwd -COPY --from=0 /usr/bin/testpmd /usr/bin/testpmd COPY --from=0 /lib64/libnetutil_api.so /lib64/libnetutil_api.so COPY --from=0 /usr/lib64/libnuma.so.1 /usr/lib64/libnuma.so.1 COPY --from=0 /root/go/src/github.com/openshift/app-netutil/bin/c_sample /usr/bin/c_sample diff --git a/tools/docker/test-containers/trafficgen-pods/pktgen/Dockerfile b/tools/docker/test-containers/trafficgen-pods/pktgen/Dockerfile index 8288cf63..44bed3e2 100644 --- a/tools/docker/test-containers/trafficgen-pods/pktgen/Dockerfile +++ b/tools/docker/test-containers/trafficgen-pods/pktgen/Dockerfile @@ -13,7 +13,7 @@ RUN yum install -y pciutils iproute; yum clean all ## Download and Build APP-NetUtil ## WORKDIR /root/go/src/ -RUN go get github.com/openshift/app-netutil 2>&1 > /tmp/UserspaceDockerBuild.log || echo "Can ignore no GO files." +RUN mkdir github.com && cd github.com && mkdir openshift && cd openshift && git clone https://github.com/openshift/app-netutil WORKDIR /root/go/src/github.com/openshift/app-netutil RUN make c_sample RUN cp bin/libnetutil_api.so /lib64/libnetutil_api.so; cp bin/libnetutil_api.h /usr/include/libnetutil_api.h -- cgit 1.2.3-korg