Is there a way to run cq-quickstart-5.6.1-runMode-pPortNo.jar to stop after CQ is initialized for the first time?
I want to create a reusable VM image that contains a barebones CQ5 instance.
To do this, I have written a script to run cq-quickstart-5.6.1-author-p4502.jar, for example, and send curl requests to the login page of the instance till it responds with a 200 status code and then I execute ./stop to stop the container.
At this point I take a snapshot of the VM and I can reuse it or share it with my teammates afterwards.
Is there a better way to achieve this? Basically, is there a way to run cq-quickstart-5.6.1-author-p4502.jar as an installer that just installs CQ and then terminates the process?
If not, is it safe to assume that when CQ's login page returns with a 200 (20x) status code, if we execute ./stop, it won't leave the installation in an inconsistent state?
Thanks in advance.