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
Add ability to set database type #6
Comments
Hi, so in general this would be possible but then you need to install also the fitting database driver and tools depending on the database which you want to use. Fusio is able to work with most databases. So which database do you want to use? |
Good point. I use openshift so I don't really worry about my database being down but it makes sense. I am thinking we change the configuration.php and add a FUSIO_DB_TYPE variable:
And maybe default it to mysql in the dockerfile environments (and others ?? .env/compose yaml) And then just to do a if then on that environment variable in docker-entrypoint.sh to run the ping test in for just mysql until we figure out the ping test for all the other db options? Other enhancements i am working on - maybe you want them as new issues. I am hoping you agree with them so I don't need to fork my changes independently.
Ref: https://github.com/gil0109/fusio-docker/tree/openshift_fixes |
We have added the type at the latest release |
I would like to use the docker image with other databases.
Any chance we could add a variable to adjust the driver parameter at the configuration.php file with the default being mysql?
Also, when I manually change the default, the mysqladmin ping -h"$FUSIO_DB_HOST" --silent in the docker-entrypoint.sh fails.
The text was updated successfully, but these errors were encountered: