This repo holds details of how to build EPICS support modules within an epics-containers Generic IOC Dockerfile. For runtime, it also has details of how to use features from each support module in an epics-container IOC instance.
This project targets support modules that are available on github or other public repositories. Facilities may choose to have an internal version of this repo for support modules that are not public. Private Generic IOCs would be free to mix support from both public and private ibek-support.
We expect that commonly used generic IOCs would be published to the epics-containers github organisation or other public registry. Such generic IOCs would be required to use public ibek-support only.
Each EPICS support module has a folder in this repo. By convention, the folder name is the same as the support module github repo name (or other repo name).
Each support module folder contains:-
install.sh:
ibek support
functions.
For an example see
install.sh
for the ADSimDetector support module.\<support module name>.ibek.support.yaml:
other:
An important aspect of ibek-support is that it will retain backward compatibility with older versions of support modules going forward from inception in October 2023. The install.sh script will be told which version of the support moduel to build and will be able to detect which OS and EPICS base version it is being built upon. The install.sh script will be able to use this information to adjust any configuration that is required by the environment.
This repository should be included into every epics-containers generic IOC as a submodule of the IOC's git repository. The generic IOC's Dockerfile should then copy the ibek-support folder for each support module it requires into the container and call its install.sh script.
For an example Dockerfile that demonstrates this see ioc-adsimdetector
For details of the ibek module support functions ibek's github page
ibek-support and ibek enable us to build a generic IOC that uses support for Aravis based cameras using this Dockerfile.
We can then use the Aravis support module YAML combined with an IOC instance YAML file to build an IOC instance.
The IOC instance will use ibek to generate this startup script and this database subst file when it launches. These two files are passed to the generic IOC to make it into an IOC instance at container runtime.
TODO: mention here how to use submodule in your ioc-xxx repo and how to merge changes into ibek-support, also how to add to the CI to keep verifying that the head of the repo is not broken for any support module. ALSO: TODO point at the main epics-containers docs once updated to this latest framework.