sergey-safarov left a comment (kamailio/kamailio#4241)
**build_and_install** - build Kamailio sources, package, and install
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L12C1-L21
**list_installed_kamailio_packages** - list installed packages and filter by
kamailio string. This output installed the kamailio packages.
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L27-L36
**kamailio_files()** - list the content of the kamailio packages and some
mandatory packages.
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L27-L36
**extra_files()** - list of mandatory files for Alpine-based Kamailio docker
image.
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L38-L58
**sort_filelist**—after merging the `ldd` output, some files may be listed
several times. function make filelist deduplication
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L60-L63
**filter_unnecessary_files()** - exclude debug, man, docs and redme files from
packaging into the docker image
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L65-L78
**ldd_helper()** - functions to call `ldd` and parse output. For `Kamailio`
modules required preload Kamailio binary file.
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L80C1-L85
**find_binaries** - we package binary files only. `ldd` is used to test file is
binary or not. This function also dynamically linked files
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L87C1-L103
**filter_os_files** - exclude files present in the base Alpine Docker image.
Required to avoid unnecessary file copy to the layer.
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L87C1-L103
**tar_files** - create two tar archives. First contains all the files required
for `minimal` Docker images. The second tar archive contains files required to
add to the base Alpine image.
Probably here kamailio binary files are listed twice in the `$TARLIST`.
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L118-L133
**make_image_tar** - create a minimal image tree and add busybox to the tree.
After this package tar again
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L135-L141
**create_apk_dir** - copy the kamailio packages to the mounted folder. These
files will be present on the host when docker container is terminated
https://github.com/kamailio/kamailio-ci/blob/master/alpine/build.sh#L143-L145
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4241#issuecomment-2884885331
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4241/2884885...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the
sender!