Skip to content

Commit

Permalink
Merge pull request #2 from epics-containers/terminalserver
Browse files Browse the repository at this point in the history
terminalservice configured - broken autosave path
  • Loading branch information
MaxHerbs authored Oct 15, 2024
2 parents e369522 + 30ad6a4 commit 66162c6
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 2 deletions.
11 changes: 11 additions & 0 deletions services/bl99p-cs-ioc-02/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# A Helm Chart for an IOC instance
apiVersion: v2
name: ec-service
version: 1.0.0

type: application

dependencies:
- name: ioc-instance
version: 4.0.0
repository: "oci://ghcr.io/epics-containers"
43 changes: 43 additions & 0 deletions services/bl99p-cs-ioc-02/config/ioc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-terminalserver/releases/download/2024.10.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


- type: epics.EpicsEnvSet
name: IOCSH_PS1
value: BL99P-CS-IOC-02>

- type: devIocStats.devIocStatsHelper
ioc: BL99P-CS-IOC-02 # TODO: why does this want both?
IOC: BL99P-CS-IOC-02
name: IOC-STATS

- type: autosave.Autosave
bl: true
iocName: BL99P-CS-IOC-02
path: /dls_sw/p99/epics/autosave
debug: 0
skip_1: false
server: None
ip: None
name: ""

- type: terminalServer.Moxa
HOST: bl99p-nt-tserv-01
NCHANS: 16
P: BL99P-NT-TSERV-01
R: ''
name: TSERV-01
10 changes: 10 additions & 0 deletions services/bl99p-cs-ioc-02/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config
labels:
app: {{ .Release.Name }}
data:

# contents of the ioc instance config folder
{{ (.Files.Glob "config/*").AsConfig | indent 2 }}
21 changes: 21 additions & 0 deletions services/bl99p-cs-ioc-02/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yaml-language-server: $schema=https://github.com/epics-containers/ec-helm-charts/releases/download/3.4.4/ioc-instance.schema.json#/$defs/service
ioc-instance:
image: ghcr.io/epics-containers/ioc-terminalserver-runtime:2024.10.1

# NOTE: the following are suggestions to help with debugging IOCs
# 1. replace the runtime container with the developer version
# this adds tools and compilers to the container so you
# can experiment in the cluster to fix the issue
#
# image: ghcr.io/epics-containers/ioc-adsimdetector-developer:2024.4.1

# 2. override the entry point to be a sleep infinity
# this means you can now use 'ec exec' to get a shell
# in the container and run /epics/ioc/start.sh.
# If it fails you can see the error and the pod
# will not terminate. In combination with 1. above you
# can experiment with changes until the issue
# is fixed.
#
# startCommand: sleep
# startArgs: infinity
4 changes: 2 additions & 2 deletions services/bl99p-ea-ioc-01/config/ioc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ entities:
max_bytes: 9000000

- type: ADAndor3.andor3
BUFFERS: 50000
BUFFERS: 50
P: BL99P-EA-DET-01
PORT: ZYLA.CAM
PORT: DET1.CAM
R: ":CAM:"
SCANRATE: .1 second
SET_SDK_ENV: "True"
Expand Down

0 comments on commit 66162c6

Please sign in to comment.