-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from epics-containers/copier
Adopt copier and add motorSim IOC
- Loading branch information
Showing
19 changed files
with
196 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: 3.6.0-2-g556dcca | ||
_src_path: gh:epics-containers/services-template-compose | ||
description: example IOC Instances and Services using docker compose | ||
services: example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
networks: | ||
channel_access: | ||
name: "channel_access" | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: "172.20.0.0/16" | ||
- subnet: "172.20.0.0/16" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
OPI Files | ||
========= | ||
|
||
All files under the opi/auto-generated folder will be generated by PVI at IOC runtime. | ||
|
||
These files are not committed to git and any changes made to them will be lost when the related IOC is restarted. | ||
|
||
To make custom opi files, create them in the opi root folder or other subfolders of opi. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
services: | ||
|
||
replace_me: | ||
|
||
extends: | ||
service: linux_ioc | ||
file: ../../include/ioc.yml | ||
|
||
image: replace_with_image_uri | ||
|
||
labels: | ||
version: 0.1.0 | ||
|
||
environment: | ||
IOCSH_PS1: replace_me > | ||
IOC_NAME: replace_me | ||
|
||
volumes: | ||
- ../../opi/auto-generated/replace_me:/epics/opi | ||
|
||
configs: | ||
- source: replace_me_config | ||
target: epics/ioc/config | ||
|
||
configs: | ||
replace_me_config: | ||
file: ./config | ||
|
||
include: | ||
- path: | ||
../../include/networks.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-template-example/releases/download/3.5.1/ibek.ioc.schema.json | ||
|
||
# TODO replace above with the generic IOC schema this IOC is based on | ||
ioc_name: "{{ _global.get_env('IOC_NAME') }}" | ||
|
||
description: REPLACE WITH DESCRIPTION | ||
|
||
entities: | ||
- type: epics.EpicsEnvSet | ||
name: EPICS_TZ | ||
value: GMT0BST | ||
|
||
- type: devIocStats.iocAdminSoft | ||
IOC: "{{ ioc_name | upper }}" | ||
|
||
# - todo: Add more entities to make a meaningful IOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
services: | ||
|
||
bl01t-mo-sim-01: | ||
|
||
extends: | ||
service: linux_ioc | ||
file: ../../include/ioc.yml | ||
|
||
image: ghcr.io/epics-containers/ioc-motorsim-runtime:2024.9.1 | ||
|
||
labels: | ||
version: 0.1.0 | ||
|
||
environment: | ||
IOCSH_PS1: bl01t-mo-sim-01 > | ||
IOC_NAME: bl01t-mo-sim-01 | ||
|
||
volumes: | ||
- ../../opi/auto-generated/bl01t-mo-sim-01:/epics/opi | ||
|
||
configs: | ||
- source: bl01t-mo-sim-01_config | ||
target: epics/ioc/config | ||
|
||
configs: | ||
bl01t-mo-sim-01_config: | ||
file: ./config | ||
|
||
include: | ||
- path: | ||
../../include/networks.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-motorsim/releases/download/2024.9.1/ibek.ioc.schema.json | ||
|
||
# TODO replace above with the generic IOC schema this IOC is based on | ||
ioc_name: "{{ _global.get_env('IOC_NAME') }}" | ||
|
||
description: REPLACE WITH DESCRIPTION | ||
|
||
entities: | ||
- type: epics.EpicsEnvSet | ||
name: EPICS_TZ | ||
value: GMT0BST | ||
|
||
- type: devIocStats.iocAdminSoft | ||
IOC: "{{ ioc_name | upper }}" | ||
|
||
- type: motorSim.simMotorController | ||
controllerName: sim-controller1 | ||
numAxes: 2 | ||
P: "BL01T-MO-SIMC-01:" | ||
|
||
- type: motorSim.simMotorAxis | ||
controller: sim-controller1 | ||
ADDR: 0 | ||
M: M1 | ||
DESC: Motor 1 | ||
home: 0 | ||
|
||
- type: motorSim.simMotorAxis | ||
controller: sim-controller1 | ||
ADDR: 1 | ||
M: M2 | ||
DESC: Motor 2 | ||
home: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.