You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/ioc_changes1.md
+19-26Lines changed: 19 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,12 @@ and deployed the IOC instance in a previous tutorial without one. It is up to
9
9
you how you choose to make these types of changes. Types 2,3 do require a
10
10
devcontainer because they involve compiling Generic IOC / support module code.
11
11
12
-
We are going to add a hand crafted EPICS DB file to the IOC instance. This will
13
-
be a simple record that we will be able to query to verify that the change
14
-
is working.
12
+
These instructions are for running inside the devcontainer. If you closed your developer container from the last tutorial, then open it again now. To do open your `bl01t` folder in vscode and then press `Ctrl-Shift-P` and type `Remote-Containers: Reopen in Container`.
13
+
14
+
We are going to add a hand crafted EPICS DB file to the IOC instance. This will be a simple record that we will be able to query to verify that the change is working. We will use the version of the IOC instance that used `ioc.yaml`. If you changed to using raw startup assets in the previous tutorial then revert to using `ioc.yaml` for this tutorial or see [](raw-startup-assets).
15
15
16
16
:::{note}
17
-
Before doing this tutorial make sure you have not left the IOC
18
-
bl01t-ea-test-02 running from a previous tutorial. Execute this command
19
-
outside of the devcontainer to stop it:
17
+
Before doing this tutorial make sure you have not left the IOC bl01t-ea-test-02 running from a previous tutorial. Execute this command *outside* of the devcontainer to stop it:
20
18
21
19
```bash
22
20
ec stop bl01t-ea-test-02
@@ -70,17 +68,10 @@ caget bl01t-ea-test-02:TEST
70
68
If you see the value 1 then your change is working.
71
69
72
70
:::{Note}
73
-
You are likely to see
74
-
*"Identical process variable names on multiple servers"* warnings. This is
75
-
because caget can see the PV on the host network and the container network,
76
-
but as these are the same IOC this is not a problem.
77
-
78
-
You can change this and make your devcontainer network isolated by removing
79
-
the line `"--net=host",` from `.devcontainer/devcontainer.json`, but
80
-
it is convenient to leave it if you want to run OPI tools locally on the
81
-
host. You may want to isolate your development network if multiple
82
-
developers are working on the same subnet. In this case some other solution
83
-
is required for running OPI tools on the host (TODO add link to solution).
71
+
If you are using podman, you are likely to see *"Identical process variable names on multiple servers"* warnings. This is because caget can see the PV on the host network and the container network, but as these are the same IOC this is not a problem.
72
+
73
+
You can change this and make your devcontainer network isolated by removing the line `"--net=host",` from `.devcontainer/devcontainer.json`, but it is convenient to leave it if you want to run OPI tools locally on the
74
+
host. You may want to isolate your development network if multiple developers are working on the same subnet. In this case some other solution is required for running OPI tools on the host (TODO add link to solution - likely to be container networks).
84
75
:::
85
76
86
77
Because of the symlink between `/epics/ioc/config` and
@@ -101,18 +92,20 @@ git push origin 2023.11.2
101
92
ec deploy bl01t-ea-test-02 2023.11.2
102
93
```
103
94
104
-
The above steps were performed on a host terminal because we are using `ec`.
105
-
However all of the steps except for the `ec` command could have been done
106
-
*inside* the devcontainer starting with `cd /workspaces/bl01t`.
95
+
You can now see that the versioned IOC instance is running and loading the extra.db by looking at its log with:
96
+
97
+
```bash
98
+
ec logs bl01t-ea-test-02
99
+
```
100
+
101
+
102
+
The above steps were performed on a host terminal because we are using `ec`. However all of the steps except for the `ec` command could have been done *inside* the devcontainer starting with `cd /workspaces/bl01t` which is where your project is mounted *inside* the devcontainer.
107
103
108
-
We choose not to have `ec` installed inside of the devcontainer because
109
-
that would involve containers in containers which adds too much complexity.
104
+
We choose not to have `ec` installed inside of the devcontainer because that would involve containers in containers which adds too much complexity.
110
105
111
-
If you like working entirely from the vscode window you can open a terminal
112
-
in vscode *outside* of the devcontainer. To do so, press `Ctrl-Shift-P` and
113
-
choose the commnd `Terminal: Create New Integrated Terminal (Local)`.
114
-
This will open a terminal to the host. You can then run `ec` from there.
106
+
If you like working entirely from the vscode window you can open a terminal in vscode *outside* of the devcontainer. To do so, press `Ctrl-Shift-P` and choose the commnd `Terminal: Create New Integrated Terminal (Local)`. This will open a terminal to the host. You can then run `ec` from there.
115
107
108
+
(raw-startup-assets)=
116
109
## Raw Startup Assets
117
110
118
111
If you plan not to use `ibek` runtime asset creation you could use the raw
0 commit comments