Skip to content

Commit 4554281

Browse files
authored
Merge pull request #27 from epics-containers/dev
Clarify types of change to IOCs
2 parents 71d220b + cfa1012 commit 4554281

File tree

5 files changed

+45
-7
lines changed

5 files changed

+45
-7
lines changed

docs/user/tutorials/debug_generic_ioc.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Debugging Generic IOC Builds
44
This tutorial is a continuation of `generic_ioc`. Here we will look into
55
debugging failed builds and fix the issue we saw in the previous tutorial.
66

7+
This also comes under the category of type 2. change from the list
8+
at `ioc_change_types`.
9+
710
There are two ways to debug a failed build:
811

912
- Keep changing the Dockerfile and rebuilding the container until the build

docs/user/tutorials/generic_ioc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Create a Generic IOC
44
In this tutorial we will learn how to create a generic IOC container image and
55
test our changes locally before deploying it.
66

7+
This is a type 2. change from the list at `ioc_change_types`.
8+
79
The example IOC used ADSimDetector, we will make a similar IOC that uses
810
ADUrl to get images from a web cam.
911

docs/user/tutorials/ioc_changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Testing Changes to IOC Instances
22
================================
33

4+
.. _ioc_change_types:
45

56
Types of Changes
67
----------------

docs/user/tutorials/rtems_ioc.rst

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,44 @@ Edit the file
130130

131131
.. code-block:: yaml
132132
133-
If you are not at DLS you will need to change the above to match the
134-
parameters of your RTEMS IOC. The environment variables are:
133+
base_image: ghcr.io/epics-containers/ioc-template-rtems-runtime:23.4.2
134+
135+
env:
136+
# This is used to set EPICS_IOC_ADDR_LIST in the liveness probe client
137+
# It is only needed if auto addr list discovery would fail
138+
- name: K8S_IOC_ADDRESS
139+
value: 172.23.250.15
140+
141+
# RTEMS console connection details
142+
- name: RTEMS_VME_CONSOLE_ADDR
143+
value: ts0001.cs.diamond.ac.uk
144+
- name: RTEMS_VME_CONSOLE_PORT
145+
value: "7007"
146+
- name: RTEMS_VME_AUTO_REBOOT
147+
value: true
148+
- name: RTEMS_VME_AUTO_PAUSE
149+
value: true
135150
136-
:K8S_IOC_ADDRESS: The IP address of the IOC (mot-/dev/enet0-cipa above)
137-
:RTEMS_VME_CONSOLE_ADDR: Address of terminal server for console access
138-
:RTEMS_VME_CONSOLE_PORT: Port of terminal server for console access
139-
:RTEMS_VME_AUTO_REBOOT: true to reboot the hard IOC when the IOC container changes
140-
:RTEMS_VME_AUTO_PAUSE: true to pause/unpause when the IOC container stops/starts
151+
If you are not at DLS you will need to change the above to match the
152+
parameters of your RTEMS Crate. The environment variables are:
153+
154+
155+
.. list-table:: RTEMS Environment Variables
156+
:widths: 30 70
157+
:header-rows: 1
158+
159+
* - Variable
160+
- Description
161+
* - K8S_IOC_ADDRESS
162+
- The IP address of the IOC (mot-/dev/enet0-cipa above)
163+
* - RTEMS_VME_CONSOLE_ADDR
164+
- Address of terminal server for console access
165+
* - RTEMS_VME_CONSOLE_PORT
166+
- Port of terminal server for console access
167+
* - RTEMS_VME_AUTO_REBOOT
168+
- true to reboot the hard IOC when the IOC container changes
169+
* - RTEMS_VME_AUTO_PAUSE
170+
- true to pause/unpause when the IOC container stops/starts
141171

142172
Edit the file ``iocs/bl01t-ea-ioc-02/Chart.yaml`` and change the 1st 4 lines
143173
to represent this new IOC (the rest of the file is boilerplate):

docs/user/tutorials/support_module.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Working with Support Modules
22
=============================
33

4+
This is a type 3. change from the list at `ioc_change_types`.
5+
46
If you are starting a new support module then the preceding tutorials
57
have covered all of the skills you will need.
68

0 commit comments

Comments
 (0)