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

add DB_ADMIN_USER to support postgresql docker #5

Open
hieplq opened this issue Feb 13, 2022 · 4 comments
Open

add DB_ADMIN_USER to support postgresql docker #5

hieplq opened this issue Feb 13, 2022 · 4 comments

Comments

@hieplq
Copy link

hieplq commented Feb 13, 2022

if use postgresql docker we can define a user difference postgres as superUser
so beside DB_ADMIN_PASS then DB_ADMIN_USER should add as environment variable

@hieplq
Copy link
Author

hieplq commented Feb 14, 2022

custom name for super user isn't support by idempiere itself
so console-setup will not pass

can overcome by on docker create empty database before run console-setup

@CarlosRuiz-globalqss
Copy link

CarlosRuiz-globalqss commented Feb 14, 2022

@hieplq - the commits idempiere/idempiere@28171cda and idempiere/idempiere@2e7f2cdb can be an example about how it can be done, there is hardcoded for amazon, but maybe is not too hard to make it more generic.

@hieplq
Copy link
Author

hieplq commented Feb 15, 2022

"create empty database before run console-setup" is a workaround
to fix it also fix for amazon case maybe we add DB_ADMIN_USER with default = postgres to setup (dialog also command line)

@hsahmed
Copy link
Contributor

hsahmed commented Nov 7, 2024

We should make the creation of the database optional for Docker containers or console-setup. This would also remove the need to customize the installation code for managed databases like AWS RDS or Azure Database for Postgresql.

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