quarkus-workshops icon indicating copy to clipboard operation
quarkus-workshops copied to clipboard

add a checkport.java to check open necessary ports

Open maxandersen opened this issue 2 years ago • 4 comments

idea i got when having to manually run lsof.

this is a script portable on all OS and runs using plain java (jbang instructions just there for ./checkports.java exec)

maxandersen avatar Sep 27 '23 22:09 maxandersen

🚀 PR Preview debbb9900593a6441e43b79f92d9e2032257964b has been successfully built and deployed to https://quarkiverse-quarkus-workshops-pr-349-preview.surge.sh

github-actions[bot] avatar Sep 27 '23 22:09 github-actions[bot]

Really nice

agoncal avatar Sep 28 '23 13:09 agoncal

@maxandersen what about merging the PR and documenting the usage of this utility class ?

agoncal avatar Oct 09 '23 10:10 agoncal

I put a comment somewhere, but I've misplaced it, because don't see it here ... I like this script a lot, but I'm not sure the workshop is the right place for it. My preference in the workshop is that we stick to first principles, and teaching people to fish rather than giving them scripts that fish for them.

If we teach workshop participants how lsof can solve their problems in general, they're really getting something out of the workshop. @maxandersen pointed out that lsof doesn't work on windows, so we'd need a guard and a netstat command, but that's easy to do. To me, that's more educational than the checkports script ... but I think we should find somewhere for the checkports script where it can be used by a bigger audience, like in the quarkus cli.

holly-cummins avatar Oct 09 '23 10:10 holly-cummins