Last active
May 16, 2017 03:04
-
-
Save egernst/04c3576133ec5d7e2ae390fee4265c71 to your computer and use it in GitHub Desktop.
Container for DPDK test applications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example docker file to create an image with a few tools and DPDK installed can be found below. | |
This will be updated with usage with VPP CNM plugin and Clear Containers | |
``` | |
FROM ubuntu:16.04 | |
ARG DPDK_VER=17.02 | |
ARG DPDK_TARGET=x86_64-native-linuxapp-gcc | |
RUN apt-get update && apt-get -y install \ | |
build-essential \ | |
ifupdown \ | |
lshw \ | |
net-tools \ | |
python \ | |
pciutils \ | |
vim | |
ADD http://fast.dpdk.org/rel/dpdk-${DPDK_VER}.tar.xz /opt | |
WORKDIR /opt | |
RUN tar -xf dpdk-${DPDK_VER}.tar.xz && mv dpdk-${DPDK_VER} dpdk && cd dpdk && \ | |
sed -ri 's,(IGB_UIO=).*,\1n,' config/common_linuxapp && \ | |
sed -ri 's,(KNI_KMOD=).*,\1n,' config/common_linuxapp && \ | |
make config T=${DPDK_TARGET} && make -j && mkdir /mnt/huge | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment