[experiment] apt-get upgrade in docker/server/Dockerfile#12124
[experiment] apt-get upgrade in docker/server/Dockerfile#12124alexey-milovidov merged 3 commits intomasterfrom
Conversation
|
@blinkov Missing description for changelog. |
docker/server/Dockerfile
Outdated
| && 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.
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.
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.
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-serverdocker image.