-
Notifications
You must be signed in to change notification settings - Fork 156
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
APT usage in Dockerfile violates best practices ( apt-get upgrade used, not pairing apt-get update and install ) #1010
Comments
@original-brownbear tag "bug" added |
@original-brownbear milestone set to |
@original-brownbear thanks for this report, I added 30 mins to your account, in transaction |
@alex-palevsky this depends on #1039 |
@original-brownbear right, let's wait for #1039 |
@alex-palevsky this is postponed. |
@original-brownbear got it, "postponed" label here |
@original-brownbear I will try to find someone else |
@original-brownbear #1039 is closed, it was an impediment |
@alex-palevsky assign me here |
@alex-palevsky this is not postponed :) |
@original-brownbear the task is yours, please proceed |
@original-brownbear in the future, try to avoid assigning yourself to your own tasks |
@original-brownbear got it, "postponed" tag removed from here |
@original-brownbear just a reminder that you are working with this task for 15 days already -30 added to your rating, at the moment it is: +3538 |
@alex-palevsky more time please, still blocked by decisively more critical tasks :/ |
@original-brownbear yes, take your time, thanks for letting me know |
The current Dockerfile violates best practices for apt use, documented here, in two ways that need to be fixed together.
apt-get upgrade use
At the end of the Dockerfile it contains the snippet
The Docker documentation states:
Given the removal of the --privileged flag in the Rultor Docker run in #1008,
apt-get upgrade
should be removed from the Dockerfile.The functionality it provides needs to be substituted by by correctly grouping
apt-get update
andapt-get install
in the same run command and pinning the versions as suggested by Docker docs:Example:
Lines like these:
Should in order to keep the build stable and make it deterministic become:
The text was updated successfully, but these errors were encountered: