From cfd1f048ad73e95c6fb3790e7e9b197902462eda Mon Sep 17 00:00:00 2001 From: "Henrique F. Simoes" Date: Tue, 16 Apr 2024 13:53:16 -0300 Subject: [PATCH] ioc: prune EPICS base directories from non-static builds. EPICS base has rather large configuration files for build, and other repository files, which are not needed in the IOC images. Prune them after building the IOCs, shrinking about 40MB the final image size. Prune is performed with the same script as modules, which discards all executables in `bin` (~15MB), as well as Perl scripts. This should be fine considering that `static-link` target also does not preserve EPICS binaries in the resulting image. --- base/lnls-prune-artifacts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/lnls-prune-artifacts.sh b/base/lnls-prune-artifacts.sh index e42436c..b362744 100755 --- a/base/lnls-prune-artifacts.sh +++ b/base/lnls-prune-artifacts.sh @@ -111,6 +111,8 @@ clean_up_epics_modules() { prune_module_dirs $module fi done + + prune_module_dirs $EPICS_BASE_PATH } clean_up_epics_modules $target_paths