Expose an endpoint to ping a given host & tell whether it's up or not
306
Expose an endpoint to ping a given host & tell whether it's up or not
Easily run using docker: docker run -p 8080:8080 -e TARGET_IP=127.0.0.1 matiasgarciaisaia/ping-request
You can alternatively run it locally, but you must ensure you have a compatible ping command that accepts -w for timeouts: TARGET_IP=127.0.0.1 crystal run src/ping-request.cr.
Or build & run: crystal build --release src/ping-request.cr && TARGET_IP=127.0.0.1 ./ping-request
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Content type
Image
Digest
Size
48.5 MB
Last updated
about 8 years ago
docker pull matiasgarciaisaia/ping-request