@@ -52,7 +52,7 @@ The standard way to set up your environment for any domain is to get
52
52
the environment.sh script from the domain repository and source it.
53
53
54
54
First make sure you have the local binaries folder in your path by adding
55
- the following to the end of you $HOME/.bash_profile file:
55
+ the following to the end of you `` $HOME/.bash_profile `` file:
56
56
57
57
.. code-block :: bash
58
58
@@ -63,7 +63,7 @@ where indicated):
63
63
64
64
.. code-block :: bash
65
65
66
- cd /tmp
66
+ mkdir -p ~ /.local/bin
67
67
curl -o ~ /.local/bin/bl01t https://raw.githubusercontent.com/** YOUR GITHUB ACCOUNT** /bl01t/main/environment.sh? token=$( date +%s)
68
68
source ~ /.bash_profile
69
69
source bl01t
@@ -73,8 +73,8 @@ profile you should be able to enable the ``bl01t`` environment as follows:
73
73
74
74
.. code-block :: bash
75
75
76
- # first make sure you have loaded your virtual environment
77
- source $HOME /ec-venv/bin/activate
76
+ # first make sure you have loaded your virtual environment for the ec tool
77
+ source $HOME /ec-venv/bin/activate # DLS users don't need this step
78
78
source bl01t
79
79
80
80
@@ -117,18 +117,20 @@ You can now see the beta IOC instance running with:
117
117
118
118
$ ec ps
119
119
IOC NAME VERSION STATUS IMAGE
120
- bl01t-ea-ioc-01 2023.10.26 -b11.53 Up 6 minutes ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2023.10.5
120
+ bl01t-ea-ioc-01 2024.1.19 -b11.53 Up 6 minutes ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2024.1.1
121
121
122
122
At the end of the last tutorial we tagged the beamline repository with a
123
123
``CalVer `` version number and pushed it up to GitHub. This means that we
124
- can now release the IOC instance with that same version number. First let's
125
- check that the IOC instance version is available as expected:
124
+ can now use that tagged release of the IOC instance. First let's
125
+ check that the IOC instance version is available as expected. The following
126
+ command lists all of the tagged versions of the IOC instance that are
127
+ available in the GitHub repository.
126
128
127
129
.. code-block :: bash
128
130
129
131
$ ec ioc instances bl01t-ea-ioc-01
130
132
Available instance versions for bl01t-ea-ioc-01:
131
- 2023.11 .1
133
+ 2024.1 .1
132
134
133
135
.. note ::
134
136
@@ -144,13 +146,27 @@ it to your local machine:
144
146
145
147
.. code-block :: bash
146
148
147
- $ ec ioc deploy bl01t-ea-ioc-01 2023.11 .1
149
+ $ ec ioc deploy bl01t-ea-ioc-01 2024.1 .1
148
150
bdbd155d437361fe88bce0faa0ddd3cd225a9026287ac5e73545aeb4ab3a67e9
149
151
150
152
$ ec ps
151
153
IOC NAME VERSION STATUS IMAGE
152
- bl01t-ea-ioc-01 2023.11 .1 Up 4 seconds ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2023.10.5
154
+ bl01t-ea-ioc-01 2024.1 .1 Up 4 seconds ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2023.10.5
153
155
156
+ IMPORTANT: deploy-local vs deploy
157
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
158
+
159
+ Be aware of the distinction of ``deploy-local `` vs ``deploy ``. Both of these
160
+ commands create a running instance of the IOC in the target environment (currently
161
+ your local machine - later on a Kubernetes Cluster). However, ``deploy-local ``
162
+ gets the IOC instance description YAML direct from your local filesystem. This
163
+ means it is not likely to be available for re-deployment later on. ``deploy ``
164
+ gets the IOC instance description YAML from the GitHub repository with able
165
+ specific tag and therefore is a known state that can be recovered at a later
166
+ date.
167
+
168
+ Always strive to have released versions of IOC instances deployed in your
169
+ environments. ``deploy-local `` is only for temporary testing purposes.
154
170
155
171
Managing the Example IOC Instance
156
172
---------------------------------
@@ -174,7 +190,7 @@ To stop / start the example IOC try the following commands. Note that
174
190
Generic IOCs.
175
191
176
192
You may have noticed that the IOC instance has is showing that it has
177
- an image ``ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2023.10.5 ``.
193
+ an image ``ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2024.1.1 ``.
178
194
179
195
This is a Generic IOC image and all IOC Instances must be based upon one
180
196
of these images. This IOC instance has no startup script and is therefore
@@ -192,9 +208,11 @@ iocShell.
192
208
193
209
ec ioc attach bl01t-ea-ioc-01
194
210
195
- Use the command sequence ctrl-P then ctrl-Q to detach from the IOC
196
- You can also usually restart and detach from the IOC using ctrl-D or
197
- ctrl-C.
211
+ Use the command sequence ctrl-P then ctrl-Q to detach from the IOC. **However,
212
+ there are issues with both VSCode and IOC shells capturing ctrl-P. until
213
+ this is resolved it may be necessary to close the terminal window to detach. **
214
+ You can also restart and detach from the IOC using ctrl-D or ctrl-C, or
215
+ by typing ``exit ``.
198
216
199
217
To run a bash shell inside the IOC container:
200
218
@@ -205,11 +223,17 @@ To run a bash shell inside the IOC container:
205
223
Once you have a shell inside the container you could inspect the following
206
224
folders:
207
225
208
- =============== ==============================================================
209
- ioc code /epics/ioc
210
- support modules /epics/support
211
- EPICS binaries /epics/epics-base
212
- =============== ==============================================================
226
+ =================== =======================================================
227
+ ioc code /epics/ioc
228
+ support modules /epics/support
229
+ EPICS binaries /epics/epics-base
230
+ IOC instance config /epics/ioc/config
231
+ IOC startup script /epics/runtime
232
+ =================== =======================================================
233
+
234
+ Being at a terminal prompt inside the IOC container can be useful for debugging
235
+ and testing. You will have access to caget and caput, plus other EPICS tools,
236
+ and you can can inspect files such as the IOC startup script.
213
237
214
238
Logging
215
239
~~~~~~~
0 commit comments