How to execute IRIS restart from inside
Some changes in IRIS configuration require a restart of IRIS.
This is no big issue as long as I have access to the server command line with sufficient privileges.
In a container, this is not always given.
Stopping IRIS from the terminal/session prompt is no problem.
But the restart after is.
Note1: container start-stop is no option as it might be removed by option --rm in docker run
Note2: the target is linux (manly in docker). Windows is excluded
To be able to restart IRIS from inside, you in any way will need some independent process on the OS level outside of IRIS, which will control stopping and starting.
If saying about doing it in the container. Most of the changes which would need to restart it, have to be prepared in Docker build process, so, it should be as part of the base image.
Docker supports command to restart, and it's doing it as one command, and it will not delete state during the restart. So, I would say it's a preferable way.
That's fine in principle.
But how does this work with the demo server? Which triggered the idea.
https://MyProject.contest.community.intersystems.com/......
Demo server means, that it was already well prepared to be ready for demo. If you need any such changes, you have to change it in the original repo, and it should be re-deployed with new settings.
Consider this technique as Infrastructure as code
OK. that means to me:
- bring your own iris.cpf (and your own license )
as I have done already in past in several cases.
And it means to have one repository for demo and another for distribution.
I have the solution I need.
https://openexchange.intersystems.com/package/rccx---Run-Container-Command-eXecution