open-nsm / ContainNSM

Dockerfiles for NSM tools
84 stars 14 forks source link

Subcommand to run oldest or newest images #42

Open jonschipp opened 7 years ago

mrc0der commented 7 years ago

@jonschipp Looking to take on a few tasks this weekend. Do you have an Idea as to what this may look like? ./containnsm run snort/[oldest|latest] Or something else in mind?

jonschipp commented 7 years ago

@mrc0der I haven't though about it too much but we could auto sort the versions to figure out the latest or oldest before running. Or we could have a symlink in each directory called latest and oldest which point to the appropriate versions - this one requires a lot more manual work but it also fits with the design better, no new code I think. I vote for the later to reduce complexity. We could probably add a helper script or subcommand to auto update the latest links so we don't have to manually do it after we add for support new NSM tool versions but that's another issue - so oldest and latest links stay current.

I also wonder if newest and oldest would be better terminology. Can you think of any better wording? I'm not too picky about it though. Go ahead if you want to proceed.