Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README or prod docker image for db initialization #119

Open
grimwm opened this issue Apr 23, 2020 · 3 comments
Open

Update README or prod docker image for db initialization #119

grimwm opened this issue Apr 23, 2020 · 3 comments

Comments

@grimwm
Copy link

grimwm commented Apr 23, 2020

There is a missing step in the README.md for bringing up confighub docker images from Docker Hub: people need to build the confighub db manager and use it to init their db before trying to bring up the docker image and connect to it. This is the "quick solution".

The "better solution" is to have the docker image pull the code, build it, and init the db by itself the first time the confighub docker image comes up.

The "best solution" is to integrate the db manager code into the confighub code. Then the db manager and CH code can be worked upon and built in lock-step, and images can be deployed with all the necessary tools more reasily.

@guy-frontegg
Copy link

@grimwm could you please provide a code in how to do so for those of us not familiar with Java

@gslongo
Copy link

gslongo commented Jun 30, 2021

Same questoon

@grimwm could you please provide a code in how to do so for those of us not familiar with Java

Same question here. Can you help ? :-)

@gslongo
Copy link

gslongo commented Jun 30, 2021

I found the (current) way to do it:

wget https://github.com/ConfigHubPub/Database-Manager/releases/download/v1.9/ConfigHubDBManager-1.9.jar
java -jar ConfigHubDBManager-1.9.jar -r jdbc:mysql://dbmysql:3306/ConfigHub -u root -p SecretPassword  -t mysql

Then restart the container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants