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

Feature: DB host during docker run time from entry.sh script #1

Open
mmuller88 opened this issue Jan 2, 2023 · 0 comments
Open

Feature: DB host during docker run time from entry.sh script #1

mmuller88 opened this issue Jan 2, 2023 · 0 comments

Comments

@mmuller88
Copy link

mmuller88 commented Jan 2, 2023

The location of the postgres DB isn't important at the docker build time only at the docker run time. So it makes sense to create a helper script that configures the config to use the DB host given from an Env variable and runs the webserver afterwards and calls it perhaps entry.sh similar to this:

sed -i "s/localhost/${R3_DB_HOST}/g" config_template.json 
/opt/r3/r3 -run -config /opt/r3/data/config.json

The last like of the docker file would look like:

CMD ["entry.sh"]

This way you don't need to rebuild the docker image when the db changed.

@mmuller88 mmuller88 changed the title DB host in entry.sh script Feature: DB host during docker run time from entry.sh script Jan 2, 2023
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

1 participant