prjemian / epics-docker

Provide EPICS IOCs in docker images
9 stars 4 forks source link

gp:float1 not found #63

Closed prjemian closed 1 year ago

prjemian commented 1 year ago

Pulled the image on separate, local workstation and confirmed the PV is not available:

root@iockgp:/home# gp.sh start                                                  
Starting kgp:                                                                   
/opt/synApps/support /opt/synApps/iocs/iocgp/iocBoot/iocgp/softioc              
/opt/synApps/iocs/iocgp/iocBoot/iocgp/softioc                                   
/opt/synApps/iocs/iocgp/iocBoot/iocgp /opt/synApps/iocs/iocgp/iocBoot/iocgp/soft
ioc                                                                             
/opt/synApps/iocs/iocgp/iocBoot/iocgp/softioc                                   
kgp: is running (pid=21) in a screen session (pid=17)                           
root@iockgp:/home# cd iocgp                                                     
root@iockgp:/home/iocgp# grep float1 dbl-all.txt                                
root@iockgp:/home/iocgp#

Originally posted by @prjemian in https://github.com/BCDA-APS/apstools/issues/841#issuecomment-1500656591

prjemian commented 1 year ago

Looking at st.cmd.Linux in the container, the general purpose PV support is not loaded:

################################################################################                                                   
# Tell EPICS all about the record types, device-support modules, drivers,                                                          
# etc. in the software we just loaded (gp.munch)                                                                                   
dbLoadDatabase("../../dbd/iocgpLinux.dbd")                                                                                         
iocgpLinux_registerRecordDeviceDriver(pdbbase)                                                                                     

< settings.iocsh                                                                                                                   
< common.iocsh                                                                                                                     
< std.iocsh                                                                                                                        
< optics.iocsh                                                                                                                     
< motors.iocsh                                                                                                                     

#- devIocStats                                                                                                                     
dbLoadRecords("$(DEVIOCSTATS)/db/iocAdminSoft.db","IOC=$(PREFIX)")                                                                 
#- PV aliases change :: into :                                                                                                     
dbLoadRecords("$(TOP)/gpApp/Db/iocAdminSoft_aliases.db","P=$(PREFIX)")                                                             

Expecting that block of loads to look like:

< settings.iocsh
< common.iocsh
< general_purpose.iocsh
< std.iocsh
< optics.iocsh
< motors.iocsh
prjemian commented 1 year ago

new prjemian/synapps image (2.0.1) pushed to docker, re-run the unit tests in CI