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.
  • Loading branch information
henriquesimoes committed Nov 6, 2024
1 parent 0b013a3 commit e5c2878
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 @@ -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 $@
Expand Down

0 comments on commit e5c2878

Please sign in to comment.