Dovecot: compile fts_xapian from source to match Dovecot ABI#3373
Dovecot: compile fts_xapian from source to match Dovecot ABI#3373georglauterbach merged 18 commits intodocker-mailserver:masterfrom
fts_xapian from source to match Dovecot ABI#3373Conversation
|
How much larger will the final image be with these changes? |
My local build is 870MB vs. latest release 616MB. The only way I see to avoid image bloat is to split the docker build: First install dovecot from community, compile fts_xapian, build a .deb. Then next step the full build copying only the dep from the first build. But that would be a larger change. Probably uninstalling the build dep packages will help a bit. I'll try that. |
|
Good idea! Because 870MB is definitely too large. The multi-stage build may be the best option, but it'd be nice if you tinker a bit around 👍🏼 |
removing deps brings it down to 700MB |
|
Perhaps put it behind a build flag? 80MB is a lot of extra weight for a feature not many are using AFAIK? (definitely better than 870MB at least) Not ideal since it requires users that do want the feature to build the image themselves though.. With Fedora and OpenSUSE this is easier at least, but I'm not that familiar with Debian. Would there be any way to reduce the image weight further?
One other concern with compiling is the CI ARM builds would probably suffer a fair bit from that until Github offers actual ARM runners instead of emulating ARM via QEMU. Hopefully with build cache that shouldn't be too frequent of a problem. |
Those can be deleted after compilation? Are the *-dev packages needed after compilation? |
|
the new patch brings it down to 619MB, but it changes the Dockerfile structure. Is this an acceptable solution? |
casperklein
left a comment
There was a problem hiding this comment.
Just some minor suggestions, otherwise looks good 👍
fts_xapian from source to match Dovecot ABI
|
@casperklein you can go ahead and merge this when all is well and you approve |
c806edc
|
Is the |
It contains the headers and /usr/share/dovecot/dovecot-abi - i am not 100% sure if the latter is needed. But it is just about 300kb. |
|
Just for the record, ~3MB, not 300kb 😉 |
oh, you are right. i looked up the wrong version. let me test if it works without the -dev. |
works without the -dev package. i changed the build. image size 619MB->618MB |
Description
compile fts_xapian from src to match dovecot abi version
Fixes #3247
Checklist:
docs/)