-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Automatic update of packages in the Docker image #47
Comments
With all the files this change seems to spur, I think it would be best if we moved the |
@asbjornu Both solutions look good to me. I think especially the APK package solution is trivial since judging from renovatebot/renovate#5422 (comment) the Dockerfile might break when the base image is updated. Good catch! I have no problem with moving the Dockerfile into a docker subdirectory. I quickly checked the other Reviewdog actions and saw that it has not been done before. However, most other actions don't use pinned versions or pin the docker base image. I don't think there is a special reason for the flat folder structure used in the https://github.com/reviewdog/action-template, but if you want, we can quickly check this with @haya14busa. |
I've started digging into this and think I've hit a couple of snags. If we start using action-remark-lint/entrypoint.sh Line 10 in e16cd95
I can replace The other snag that may be a problem is that the following lines may conflict with the action-remark-lint/entrypoint.sh Lines 13 to 16 in e16cd95
Thoughts? |
Actually, running $ npm non-existent-package-being-ignored --version
7.20.3 |
@asbjornu Good point, I also overlooked that. Some solutions can be found here (https://stackoverflow.com/questions/14657170/installing-global-npm-dependencies-via-package-json). I liked the PATH solution the most, but I could not get it to work on my local environment (i.e., I didn't spend enough time trying to get it to work). If we however are planning to use renovate, I think it already provides us with the tools to upgrade |
Thanks again for working on this! If implemented, I think it is a good feature to also use in the other actions. Let me know if you run into any problems. I haven't worked with these more advanced features of renovate features, but I’m happy to read up. |
In the
Dockerfile
, both APK and NPM packages are pinned to specific versions as per best practice. We need to devise a way to keep these packages up to date.action-remark-lint/Dockerfile
Line 9 in e16cd95
For NPM, perhaps we can use
package.json
andpackage-lock.json
to move the packages out of theDockerfile
and then use Renovate to keeppackage-lock.json
up to date.action-remark-lint/Dockerfile
Line 3 in e16cd95
For APK packages, a possible solution is described in renovatebot/renovate#5422 (comment).
The text was updated successfully, but these errors were encountered: