Service Virtualization

  • 1.  Could not run Broker service as a Docker container

    Posted Jul 10, 2018 06:35 AM

    Hi everyone,

     

    I wanted to run VSE as a Docker container and followed the releated document in here.

     

    I successfully built docker images, but when i try to run following command,

     

    docker run -p 1508:1508 -p 2009:2009 devtest/registry-broker-base /opt/devtest/bin/Broker -n tcp://127.0.0.1:2009/Broker -m tcp://17*.***.***.***:2010/Registry

    it returns;

     

    Locale: en_US
    Setting System.out and System.err to: ANSI_X3.4-1968
    LISA_HOME set to /opt/devtest/
    DevTest temporary directory is /root/lisatmp_10.3.0
    Configuring logging from '/opt/devtest/logging.properties'
    Usage: 'java -jar PFBroker.jar [options]' where options is one or more of:
    -?, --help [arguments] : prints this message
    -v, --version : prints the agent version
    --ssl : use the ssl protocol. Defaults to tcp
    -h, --host <hostname> : set listening host. Defaults to 0.0.0.0
    -p, --port <port number> : set listening port number. Defaults to 2009
    -s, --standalone : disregard any LISA environment settings
    --sink <driverClass::url::user::password> : Override configured DB sink
    See https://support.ca.com/cadocs/7/CA%20LISA%2010%203-ENU/Bookshelf.html for more details...

     

    It looks like we cannot run PFBroker.jar via passing -n and -m arguments or there were some missing points at build stage..

     

    Is there any idea?

    Thanks,

    Can



  • 2.  Re: Could not run Broker service as a Docker container

    Broadcom Employee
    Posted Jul 10, 2018 12:09 PM

    Can you try this command to see if it starts your broker:

     

    docker run -d --name broker -v /logs/broker:/root/lisatmp_10.3.0 --net="host" -p 1508:1508 -p 2009:2009 devtest/registry-broker-base /opt/devtest/bin/Broker

     

    It will have to be modified to fit your environment as to where you write out the log files.



  • 3.  Re: Could not run Broker service as a Docker container

    Posted Jul 11, 2018 02:37 AM

    Hi Marcy,

     

    Thanks for your reply. Yes it is running if i dont pass the registry address as an argument.



  • 4.  Re: Could not run Broker service as a Docker container

    Broadcom Employee
    Posted Jul 10, 2018 12:15 PM

    Hello Can - do you really need the Broker to be running? Are you using CAI (fka Pathfinder)? 

     

    Thanks.



  • 5.  Re: Could not run Broker service as a Docker container
    Best Answer

    Posted Jul 10, 2018 12:50 PM

    The broker needs to run in the same network context as the register - effectively it needs to run so that it can contact the registry on localhost.

     

    In practice this means that you probably want to run the registry and broker in the same container. 

     

    There is a worked example using Docker Compose here DevTest's Adventures in Dockerland . You will need to modify this according to which of the many container orchestration systems you use. 



  • 6.  Re: Could not run Broker service as a Docker container

    Posted Jul 11, 2018 02:48 AM

    Hi Dave,

     

    I will examine the document carefully. 

     

    Many thanks,