searxng/utils
Ivan Gabaldon 3de7a6da2d
[enh] container: tidy builds (#5086)
Building the container currently does not work properly.
When rebuilding several times with `make container`, `version_frozen.py`
is recreated, which wouldn't be an issue if the file’s timestamp was constant.
Now, when creating `version_frozen.py`, it will have the same timestamp as the
commit when it was created. (`version_frozen.py` is moved to a dedicated layer).

Reusing "builder" cache when building "dist" could be slow
(CD reports 2 seconds, but locally I've seen it take up to 10 seconds),
so the Dockerfile is now split and we save a couple steps
by importing the "builder" image directly.

The last changes made it possible to remove the layer cache in "builder",
since the overhead is now greater than building the layers from scratch.

Until now, all "dist" layers were squashed into a single layer,
which in most cases is a good idea
(except for storage/delivery pricing/overhead), but in our case,
since we manage the entire pipeline, we can ignore this
and share layers between builds.
This means (for example) that if we change files unrelated to the container
in several consecutive commits (documentation changes), we don't have to push
the entire image to registry, but only the different layers
(`version_frozen.py` in this example).
The same applies when pulling, as only the layers that have changed
compared to the local layers will be downloaded (that's the theory,
we'll see if this works as expected or if we need to tweak something else).
2025-08-07 10:46:26 +02:00
..
templates/etc [enh] py: whitenoise for static handling (#5032) 2025-07-23 18:16:10 +02:00
brand.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
get_setting.py [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
lib.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_govm.sh [mod] create a Go project with the developer tools from Go 2025-07-28 12:53:26 +02:00
lib_nvm.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_redis.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_sxng_container.sh [enh] container: tidy builds (#5086) 2025-08-07 10:46:26 +02:00
lib_sxng_data.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_sxng_node.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_sxng_static.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_sxng_test.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_sxng_themes.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_sxng_vite.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_sxng_weblate.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
lib_valkey.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
makefile.include [chore] overdue maintenance of shell scripts 2025-07-28 12:53:26 +02:00
searxng.sh [fix] apply shell formating / shfmt (make format.shell) 2025-07-28 12:53:26 +02:00
searxng_check.py [mod] migrate from Redis to Valkey (#4795) 2025-07-09 07:55:37 +02:00