Skip to content

Commit

Permalink
add notes on ibek YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Apr 26, 2023
1 parent a133776 commit 81961f1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/user/how-to/ibek-defs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Updating and Testing ibek-defs
==============================

TODO: this is draft
TODO: this uses a Diamond internal repo as an example

The ibek-defs repository contains ibek support yaml. Here is an example
procedure for local testing of changes to support yaml in ibek-defs
along side IOC yaml that uses it.

(Suggest you do this inside a dev-e7 workspace devcontainer)

.. code-block:: bash
cd my-workspace-folder
# clone ibek-defs
git clone git@github.com:epics-containers/ibek-defs.git
# clone an example domain repo with example IOC yaml
git clone git@gitlab.diamond.ac.uk:controls/containers/accelerator/acc-psc.git
# get latest ibek installed
pip install ibek
cd acc-psc/iocs/sr25a-ioc-01
ibek build-startup config/ioc.boot.yaml ../../../ibek-defs/*/*.yaml
This will get ibek generate a startup script and database generation script
in the config folder. It uses config/ioc.boot.yaml as the description of
the IOC 'entities' to instantiate and all of the support yaml files
in ibek-defs as a source of the definitions of the classes of entities
available.

The example currently uses the timingtemplates definitions only.

Note that at present ibek generates a script of msi invocations instead
of a substitution file. This will be changed in the future.
1 change: 1 addition & 0 deletions docs/user/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ side-bar.
how-to/own_tools
how-to/useful_k8s
how-to/update_templated
how-to/ibek-defs

+++

Expand Down

0 comments on commit 81961f1

Please sign in to comment.