sbt / sbt-native-packager

sbt Native Packager
https://sbt-native-packager.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
1.6k stars 441 forks source link

Disabling warnings #1367

Open huntc opened 4 years ago

huntc commented 4 years ago

I've recently upgraded and notice that there are now warnings for the lack of dockerExposedPorts. Is there a means of disabling such warnings as there are use-cases where a docker image is used as a base for another one?

muuki88 commented 4 years ago

Hi @huntc :smile:

There's no api to disable a single validation. Currently you can only disable all validations all together

Docker / validatePackageValidators := List.empty

In hindsight this was not vey well crafted API and doesn't allow for a lot of customizations.