Closed prjemian closed 3 years ago
@dohnarms : How does alive learn/determine the name of the IOC? Can I override it?
context: I have a docker container that starts an IOC where the IOC prefix can be supplied when the IOC starts. The default is xxx:
and it runs from directory iocxxx
.
Hi Pete,
By default, alive uses what is in the IOC environment variable. You can change the environment variable used by changing the NMVAR record field value from "IOC". You can also directly set the IOC name with the IOCNM record field, which overrides any environment variable (this is probably what you want).
You need at least alive version 1-1-0 for these methods to exist.
Dohn
From: Pete R Jemian notifications@github.com Sent: Saturday, June 6, 2020 10:45 PM To: prjemian/epics-docker epics-docker@noreply.github.com Cc: Arms, Dohn A. dohnarms@anl.gov; Mention mention@noreply.github.com Subject: Re: [prjemian/epics-docker] synApps container reports iocxxx to alive (#9)
@dohnarmshttps://github.com/dohnarms : How does alive learn/determine the name of the IOC? Can I override it?
context: I have a docker container that starts an IOC where the IOC prefix can be supplied when the IOC starts. The default is xxx: and it runs from directory iocxxx.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/prjemian/epics-docker/issues/9#issuecomment-640152500, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC6737N2TANFNONMAWK7UFLRVMENVANCNFSM4MDK6WVQ.
Will remove ALIVE from the docker image.
The startup of the synApps container should modify the envParams so that it reports the correct IOC name to alive. Here's what it looks like now at APS:
Thanks to @kmpeters for identifying this!