F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.82k stars 891 forks source link

Provide a sample Docker container running F-stack #767

Open tbarbette opened 1 year ago

tbarbette commented 1 year ago

Hi all!

I had multiple students over time wanting to use F-stack, sadly without success.

Maybe someone already have a Dockerfile that compiles F-stack and runs a sample app? I think it would be helpful if such a Docker container does not exist, because Docker builds upon a known basis, and can be verified as part of a CI easily ensuring the whole process still works. Alternatively, a Vagrantfile to build a VM would be interesting, though those tend to fail more over time (e.g. because Ubuntu disables old repositories).

It would be only for functional testing, as to be generic enough with DPDK it will need --no-huge to avoid huge pages and be compiled with an old -march, so it won't be suited for performance. But still would allow development and start from something that works. Students (and others, I guess) typically take a few months already to understand DPDK in length, bare-metal high-speed networking, sharding, etc. So a ready-to-develop environment would ease the entry and in the long-term might allow open source contribution :)

Thanks, Tom

jfb8856606 commented 1 year ago

We only tested the basic functions of F-Stack in the container at a very early stage, and did not actually use the container later, so we cannot provide an official Dockerfile for the time being.

If anyone can contribute a Dockerfile, submit a pull request to the example directory.