Closed bluepuma77 closed 2 years ago
It would be great to be able to set the NextGen Connect admin user/pass with Docker variables like the ones for database access
--env CONNECT_USERNAME=username
--env CONNECT_PASSWORD=secret
Can I just write user/pass into the database or is there a command line tool I can use?
After further research I found in the User Guide the instructions on page 460 to set the password to the default "admin".
UPDATE PERSON_PASSWORD SET PASSWORD = 'YzKZIAnbQ5m+3llggrZvNtf5fg69yX7pAplfYg0Dngn /fESH93OktQ==' WHERE PERSON_ID = ?;
Is there no method to set a new password from CLI?
If the CLI is proving inadequate, you could try switching over to the rest API (https://
@cturczynskyj I have the same wish as @bluepuma77:
I am aware that the most stable way of getting this functionality is changing the mcserver
executable so that it allows this parametrization on startup. What do you think, would that be an option?
@aristotelos I think it would be worth making the second request in the main repo, as it is not specific to docker and could be useful with other install methods.
I mentioned the problems with the first request on this issue https://github.com/nextgenhealthcare/connect-docker/issues/5
Since then, there has been some discussion in Slack, and probably the best way to achieve what you want is with a custom plugin that will activate after the mirth server has completed configuring the new database and started up. It can then acquire the channel definitions and import them automatically.
This is also not docker specific, but it works well with the docker container because the plugin loading mechanism allows you to have them installed on first run rather than installing them after the server is running and rebooting.
@tonygermano Thank you, created https://github.com/nextgenhealthcare/connect/issues/6037.
nextgenhealthcare/connect
works great so far, I have started the container with some open TCP-Ports, changed the password and deployed some channels to receive HL7v2 messages over MLLP.Now with everything stable, I would like to automate the full configuration and start of connect and the channels. What's the best practice to do this programatically when starting a new container?