Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When looking into #147 and wondering whether or not the
smbd-only
tag would be suitable for our usecase, I noticed that when using this variant I was faced with various Avahi-related warnings when booting this image, making me wonder whether or not I had it properly configured. However, it seems like they are caused by a combination of:AVAHI_DISABLE
not being set in the images (this was missing fromgenerate-variants.sh
AVAHI_DISABLE
is setI figured this was caused by some mismatching between logic in
build.sh
andgenerate-variants.sh
. Therefore I've opted to merge the scripts, using an argument-keyword-detection system ingenerate-variants.sh
to distinguish "generate" and "generate+build" mode. Furthermore, I've opted to disable some additional logic in the entrypoint script by checking forAVAHI_DISABLE
.Finally, I ran into some issues with
generate-variants
becoming slower on repeated runs, due to nested tar'ing of thevariants
directory, which I removed by using.dockerignore
as ignore-file and adding some additional files/folders to it.For reference, the warnings can be reproduced with e.g.:
docker run --rm ghcr.io/servercontainers/samba:smbd-only-a3.20.3-s4.19.9-r0 /bin/sh -c "echo 'debug done'"
:After this MR the output is as follows: