08-06-2020, 02:06 PM
Hi Gary,
I can't find where you create and populate the sthpw in postgres. The current install.py uses the createdb command without passing the host and will fail if the DB server is not local. When you start tactic the sthpw database must exist.
I made few addition to the install.py script to make it possible to pass host and username, this make it possible to install tactic using a remote DB host or docker image as long as you have the postgres utilities locally installed, I will make a PR today or tomorrow after testing if everything works fine. The passed parameters are set in /opt/tactic/tactic_data/config/tactic-conf.xml as well.
The idea is that you just do the git checkout in the Dockerfile and launch the install.py at image deployment when the db is running, perhaps putting a check where if tactic is already installed because of persistent volumes we try an update and then launch the server. In this way we will be able to update a tactic deployment simply by stopping the images and doing a "docker pull ..."
I can't find where you create and populate the sthpw in postgres. The current install.py uses the createdb command without passing the host and will fail if the DB server is not local. When you start tactic the sthpw database must exist.
I made few addition to the install.py script to make it possible to pass host and username, this make it possible to install tactic using a remote DB host or docker image as long as you have the postgres utilities locally installed, I will make a PR today or tomorrow after testing if everything works fine. The passed parameters are set in /opt/tactic/tactic_data/config/tactic-conf.xml as well.
The idea is that you just do the git checkout in the Dockerfile and launch the install.py at image deployment when the db is running, perhaps putting a check where if tactic is already installed because of persistent volumes we try an update and then launch the server. In this way we will be able to update a tactic deployment simply by stopping the images and doing a "docker pull ..."