-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[experiment] apt-get upgrade in docker/server/Dockerfile #12124
Conversation
@blinkov Missing description for changelog. |
docker/server/Dockerfile
Outdated
@@ -14,6 +14,8 @@ RUN apt-get update \ | |||
&& apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 \ | |||
&& echo $repository > /etc/apt/sources.list.d/clickhouse.list \ | |||
&& apt-get update \ | |||
&& env DEBIAN_FRONTEND=noninteractive \ | |||
apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" upgrade \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any idea why "upgrade" is needed?
Isn't it true that apt-get install
installes the latest available version and apt-get update
makes sure that the latest versions are available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If base image has some outdated system packages they will be upgraded by that command. In good scenario it will do nothing. If it will update smth it will lead to increasing docker image size (it will contain not only base image + clickhouse, but also + upgraded packages). Ideally if base image will have all freshest version already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@filimonov Maybe simply change to 20.04?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the idea of upgrade
was to make sure that there are no outdated packages in the base image. I've tried to switch it to 20.04 as well. Unfortunately, all together it reduces the number of reported issues only by ~60%. One more experiment was to remove (purge) unused system packages after installing ClickHouse, but they happen to fail in their postrm
scripts for some reason, so I didn't commit it.
So we could merge this PR because it somewhat improves the situation, but building the image from scratch as you tried in https://github.com/ClickHouse/ClickHouse/tree/master/docker/bare is probably indeed easier than fixing the minimal Ubuntu.
Ok. What we need to make "bare" Docker container full featured?
|
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Perform an upgrade of system packages in the
clickhouse-server
docker image.