Skip to content

Commit

Permalink
ioc: prune EPICS base directories from non-static builds.
Browse files Browse the repository at this point in the history
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 by 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.
  • Loading branch information
henriquesimoes committed Nov 8, 2024
1 parent 1680f69 commit 2ae76d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/lnls-prune-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ clean_up_epics_modules() {
echo "Pruning module '$dir'..."
prune_module_dirs $dir
done

prune_module_dirs $EPICS_BASE_PATH
}

remove_static_libs() {
Expand Down

0 comments on commit 2ae76d3

Please sign in to comment.