-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Update the packages inside a Dockerfile #3717
Comments
Yes, but first we need to make sure we already have datasources for those, e.g. alpine packages. Ones like npm would be easier as we already have great npm support. |
Yes, but npm we can easily circumvent by importing an external package.json with its lock (yarn.lock or other). That is not possible with system packages like apk and deb. |
Agreed. I was just mentioning that because "npm install" is one of the hadolint examples you gave. I would prefer to start on apk/deb too |
For alpine you can use http://dl-cdn.alpinelinux.org/alpine/ as the data source. Note alpine doesn't appear to keep old versions of products, only the latest is present in the repo. |
It would be nice if we could include yum support too :) |
I think that the datasources should be configurable as users can configure other repositories than the default with more recent packages in them. |
I would be interested in this feature too, for alpine-linux package updates |
@fullstackzach can you give an example Dockerfile or line in particular? |
As a workaround it should be possible to add a custom rule using our new regex-based manager: https://docs.renovatebot.com/modules/manager/regex/ |
Do we need other stuff before we can begin? New I also get the impression that we're waiting on examples given this comment from rarkins:
Maybe we should label this Also I'm not sure what |
I think we can close this. Reasoning:
|
According to hadolint and the Docker documentation, we should pin packages in a Dockerfile
https://github.com/hadolint/hadolint/wiki/DL3008
https://github.com/hadolint/hadolint/wiki/DL3016
https://github.com/hadolint/hadolint/wiki/DL3018
https://github.com/hadolint/hadolint/wiki/DL3013
Renovate should be able to change the packages versions according to a repository or a list of repositories.
Currently, I wildcard to the major version of each package.
The text was updated successfully, but these errors were encountered: