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

Allow connections via databases.conf #8

Open
wolfgangreder opened this issue Sep 19, 2024 · 6 comments
Open

Allow connections via databases.conf #8

wolfgangreder opened this issue Sep 19, 2024 · 6 comments

Comments

@wolfgangreder
Copy link

Currently it is required to build the connection url with the full file path.
It would be nice to register databases in databases.conf

@fdcastel
Copy link
Owner

Could you elaborate a bit more?

What is your use case?

What problem would this intend to solve?

@wolfgangreder
Copy link
Author

  1. I am forced to use a (container internal) path in the jdbc url: eg. jdbc:firebirdsql://localhost:3050//var/lib/firebird/data/test.fbd instead of jdbc:firebirdsql://localhost:3040/test.
  2. Per database configuration requires manipulation of database.conf.
  3. I think it would be generally wise to allow externalization of configuration (not only database.conf), log files and security database. This would allow easy backup and restore.

@bothermenot
Copy link

you can mount databases.conf (firebird.conf, udf libraries directories) as volumes
eg. -v /path/to/databases.conf:/opt/firebird/databases.conf

@wolfgangreder
Copy link
Author

you can mount databases.conf (firebird.conf, udf libraries directories) as volumes eg. -v /path/to/databases.conf:/opt/firebird/databases.conf

Well, that should be possible. See https://github.com/jacobalberty/firebird-docker

@bothermenot
Copy link

So when you mount databases.conf as suggested you should be able to connect to databases as defined in the file instead of using full container path

@fdcastel
Copy link
Owner

fdcastel commented Dec 11, 2024

I am still uncertain about the potential benefits this offers, aside from adding boilerplate code to do something already solved by Docker.

To use database aliases, you may create your own databases.conf file and configure a Docker bind mount for it.

Why the image entrypoint.sh code should do this?

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