Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sample startup script #7

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion template/services/.ioc_template/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ services:
environment:
IOCSH_PS1: replace_me >
IOC_NAME: replace_me
IOC_PREFIX: REPLACE_ME

volumes:
- ../../opi/iocs/replace_me:/epics/opi
Expand Down
15 changes: 5 additions & 10 deletions template/services/example-test-01/config/ioc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,14 @@ entities:
value: GMT0BST

- type: devIocStats.iocAdminSoft
IOC: '{{ ioc_name | upper }}'
IOC: "{{ ioc_name | upper }}"

- type: epics.StartupCommand
command: dbLoadRecords("/epics/ioc/config/ioc.db")

- type: epics.dbpf
pv: EXAMPLE:IBEK:A
value: '2.54'

- type: epics.dbpf
pv: EXAMPLE:IBEK:B
value: '2.61'
command: |
dbLoadRecords("/epics/ioc/config/ioc.db")

- type: epics.PostStartupCommand
command: |
dbpf EXAMPLE:A "2.54"
dbpf EXAMPLE:B "2.61"
dbgf EXAMPLE:IBEK:SUM