I have a minishift setup running in my local and now I brought a tomcat container up with few war files in it. Now I have a script in /usr/local/tomcat/bin folder. I need to run the script and I am posting a curl request to fetch something from the war deployed. Issue1: I am not able to use post deployment lifecycle hook as it just creates a copy of the pod and the container is still not started, so I cannot make use of the war deployed to access the app service. Let me know if there is a way to execute the script inside the container. I am trying with tasks and cronjob, let me know if that will work.
Thanks in advance.