Dockerfile for fping
This adds a Dockerfile to the repository. The start of this is to build on the latest ubuntu (20.04).
I could see this being useful to test out new changes that require different versions of packages without affecting the host system. This is also useful if/when CI is modified to use Github Actions #223 as the dockerfile could automatically get pushed to the latest on a push to master.
Build:
docker build -t fping .
Run fping on a host that does not have fping currently
$ docker run --name fping --rm -it fping 4.2.2.2 8.8.8.8 1.2.3.4
4.2.2.2 is alive
8.8.8.8 is alive
1.2.3.4 is unreachable
Run fping within container
docker run --entrypoint bash -it fping
root@8ca8ee184d27:/app# fping 4.2.2.2 1.2.3.4 -t 30
4.2.2.2 is alive
1.2.3.4 is unreachable
Thank you, I am willing to merge this, but could you move it under "contrib"?
This has been done and updated original comment about how to build with Dockerfile in the contrib folder.
@schweikert what else is needed for PR to be merged?
I still see a file named Dockerfile outside of the contrib directory.
You are correct, my apologies, should be corrected now. I left .dockerignore in the main directory, to allow building appropriately. If that's not accepted I can figure out how best to change the building of the docker container.
Thanks!