I need help as Solace Pub Sub container is not coming as healthy if i use ENTRYPOINT or CMD

Monis
Monis Member Posts: 4
edited July 18 in Tips and Tricks #1

my docker file

FROM solace/solace-pubsub-standard:latest

EXPOSE 8080 55555

ADD configure_queue.sh /usr/local/bin/

ADD start.sh /usr/local/bin/

USER root

RUN chmod +x /usr/local/bin/configure_queue.sh

RUN chmod +x /usr/local/bin/start.sh

ENTRYPOINT ["/usr/local/bin/start.sh"]

start.sh

#!/bin/bash

/configure_queue.sh &

/usr/sbin/boot.sh

where in configure_queue.sh i am calling api to create queue

container is not coming healthy and Admin UI is coming when i login it time out after sometime

Tagged:

Answers

  • uherbst
    uherbst Member, Employee Posts: 127 Solace Employee

    Hi @Monis,

    What exactly do you mean with "calling API to create queue" ? You're doing cli commands or SEMP requests ?

    Nevertheless, it isn't supported to add anything into the image or change any RUN commands.

    The recommended way of doing what you want to do:
    1. Start your docker container.
    2. Wait for the broker to come up (we know, that could take a few minutes)
    3. after that, configure queues from outside with SEMPv2.

    Uli

  • Monis
    Monis Member Posts: 4

    i mean by calling SEMP which i keep it configure_queue.sh file

  • uherbst
    uherbst Member, Employee Posts: 127 Solace Employee

    Thanks for answer. My recommendation still holds true:
    Dont do it in a script inside the container.

    1. Start your docker container.
    2. Wait for the broker to come up (we know, that could take a few minutes)
    3. after that, configure queues from outside with SEMPv2.



    Uli