Skip to content

Commit 975438f

Browse files
authored
Merge pull request #35 from epics-containers/dev
add notes on ibek YAML
2 parents facee39 + 81961f1 commit 975438f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

docs/user/how-to/ibek-defs.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Updating and Testing ibek-defs
2+
==============================
3+
4+
TODO: this is draft
5+
TODO: this uses a Diamond internal repo as an example
6+
7+
The ibek-defs repository contains ibek support yaml. Here is an example
8+
procedure for local testing of changes to support yaml in ibek-defs
9+
along side IOC yaml that uses it.
10+
11+
(Suggest you do this inside a dev-e7 workspace devcontainer)
12+
13+
.. code-block:: bash
14+
15+
cd my-workspace-folder
16+
17+
# clone ibek-defs
18+
git clone [email protected]:epics-containers/ibek-defs.git
19+
# clone an example domain repo with example IOC yaml
20+
git clone [email protected]:controls/containers/accelerator/acc-psc.git
21+
22+
# get latest ibek installed
23+
pip install ibek
24+
25+
cd acc-psc/iocs/sr25a-ioc-01
26+
ibek build-startup config/ioc.boot.yaml ../../../ibek-defs/*/*.yaml
27+
28+
This will get ibek generate a startup script and database generation script
29+
in the config folder. It uses config/ioc.boot.yaml as the description of
30+
the IOC 'entities' to instantiate and all of the support yaml files
31+
in ibek-defs as a source of the definitions of the classes of entities
32+
available.
33+
34+
The example currently uses the timingtemplates definitions only.
35+
36+
Note that at present ibek generates a script of msi invocations instead
37+
of a substitution file. This will be changed in the future.

docs/user/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ side-bar.
4242
how-to/own_tools
4343
how-to/useful_k8s
4444
how-to/update_templated
45+
how-to/ibek-defs
4546

4647
+++
4748

0 commit comments

Comments
 (0)