You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »



This document states workflows to develop a OPI to be integrated into a k8s ECS deploy.

Common and preparatory steps


Create a GIT repository

Every OPI MUST have a GIT repository associated. A project must be created under https://baltig.infn.it/lnf-da-control or a different group like for instance:

https://baltig.infn.it/infn-epics

https://baltig.infn.it/epics-containers

Pay attention to not set the project private otherwise will not be possible to load it into the ECS k8s.

Setup Phoebus

Please refer to this guide: Phoebus Setup.

Setup environment

Depending on the target beamline (i.e. sparc environ EPIK8s Sparc):

  1. Setup EPICS_CA_ADDR_LIST
  2. Identify your target ECS information page (i.e EPIK8s Sparc ) retrieving "GIT Control Source" URL, clone it.
    Full CS
    git clone https://baltig.infn.it/lnf-da-control/<BEAMLINE>-k8s-ecs.git --recurse-submodules
  3. This project includes a opi directories that is a git submodule that points to a GIT project intended to include all the CSS/phoebus interfaces that compose the Control System interfaces of the K8S ECS beamline. The entry point to the beamline control interface is Launcher.bob. The settings.ini is built by start.sh depending on the environment variables:
    1. EPICS_CA_ADDR_LIST that must include the addresses of the IOC you want to access or the address of the ca-gateway listed on the target ECS information page
    2. OPIHOME the directory where the OPIs are.
    3. EPICS_ARCHIVER the Entry point of the archiver.

    4. PHOEBUS_SAVE_AND_RESTORE service of save and restore

    5. PHOEBUS_SCAN_SERVER service

  4. Test your environment trying to open Launcher.bob and open some control interface.


Develop your OPI and deploy

Use your local Phoebus to develop and test your OPI, when the OPI is ok and you need to include it in the control follow this steps:

  1. go into the opi directory and add your GIT project:
    start.sh
    cd opi
    git submodule add <your project url> 
  2. modify the Launcher.bob to properly integrate your new interface
  3. test and commit your modification:
    start.sh
    git commit -m "my comment" .
    git push origin




  • No labels