-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New feature: "Custom MegaLinter Flavors" #4523
Comments
cc @bdovaz :) |
@nvuillam I would like you to explain in detail that second step of how My analysis, which I don't know if it is yours or if it is different (because I need more explanation on yours), would be that The only drawback of all this is that there would not be a registry where to cache all these combinations (docker / ghcr) as until now with flavors and we would delegate that each user would have to configure and build the image. cc @echoix |
Is there something we can learn about how devcontainers spec use features to build a docker images with parts contributed by multiple sources? |
@bdovaz the goal is to provide a default github workflow that would take care of the build & publish of the Dockerfile About mega-linter-runner actions, i'd see it more about just copying the necessary files to generate the custom Dockerfile, including a very light version of build.py that would
On the user level , the path would be something like:
Example: mega-linter-flavor.yml name: Whatever
# Case where we want all linters from a descriptor
DESCRIPTORS:
- BASH
- YAML
# Case where we want only some linters, so use linter key
LINTERS:
- GO_REVIVE
- PHP_PSALM
- PHP_PHPSTAN Note: maybe instead of the mega-linter-runner copying file, we could create a "megaLinter-custom-flavor-template" repo, so people would just creata a new repo from it ? I was thinking about mega-linter-runner in case of later upgrades of the light build.py for example, but maybe we can"refresh" a repo from the template repo used to generate it ? |
We definitely need something, maybe:
generating a base image with just the core and no linter
use mega-linter runner to generate a template repo with a dockerfile based on the the core image
add instructions to select the linters for your custom flavor (a .megalinter-flavor.yml file maybe ?) + how to configure the repo (variables...) to have ready to use images generated via a GitHub actions workflow
Make sure to display in the execution log that the Flavor used in unofficial (anyone could build a hacky flavor so we have to be clear about using images we didn't generate is not MegaLinter's responsability
The text was updated successfully, but these errors were encountered: