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 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.
henriquesimoes committed Nov 6, 2024
1 parent b2764a3 commit c34d5c2
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
@@ -153,6 +153,8 @@ clean_up_epics_modules() {
echo "Pruning module '$dir'..."
prune_module_dirs $dir
done

prune_module_dirs $EPICS_BASE_PATH
}

clean_up_epics_modules $@

0 comments on commit c34d5c2

Please sign in to comment.