Restart Tomcat in a Container

I have a container, which has Tomcat and Apache running all in the same container/image. Now, my Jenkins build should send a command to the container and trigger Tomcat to either stop/start or restart.

What is the best approach to do so? Jenkins is outside the container…

Thanks!

Hello @daribo

Please I need to know how you did that !

Thank you

I was looking to do this too and stumbled across this dusty old thread. I suppose it’s like the old joke:

  • Patient: Doctor doctor, it hurts when I move my arm!
  • Doctor: Then don’t do that.

The solution: build a custom container with your special sauce. No need to restart.