Skip to content
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

Dead link for no-install-recommends #182

Open
bcdady opened this issue Jul 15, 2021 · 0 comments
Open

Dead link for no-install-recommends #182

bcdady opened this issue Jul 15, 2021 · 0 comments

Comments

@bcdady
Copy link

bcdady commented Jul 15, 2021

Issue
Optimization rule for --no-install-recommends provides a "For more information" link which does not take the viewer to valid web page.

User Experience
"this blog post" results in the browser displaying:

404

Page not found

We’re sorry, the page you have looked for does not exist in our database! Maybe go to our home page or try to use a search?

Suggested Resolution
A bing search suggests this link should be updated to use this URL: https://www.replicated.com/blog/refactoring-a-dockerfile-for-image-size/

Additional Detail
Here's how the output displayed in my latest lint job (orchestrated via mega-linter).

    Line 22: RUN apt-get update && apt-get install -y ansible python3 python3-pip ssh awscli && mkdir -p
    /ansible/deploy && mkdir /root/.ssh && chmod 0700 /root/.ssh
    Issue  Category      Title                 Description
        2  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                         matching cache rm     /var/lib/apt/lists/* in the same layer.
        3  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                         `--no-install-recomm  installing packages.  This will result in a smaller image size.
                         ends`                 For
                                               more information, see [this blog
                                               post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                               e-for-image-size/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant