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 Oct 14, 2024
1 parent da699e1 commit cfd1f04
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 @@ -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
Expand Down

0 comments on commit cfd1f04

Please sign in to comment.