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

REDMINE_DB_PORT not working #130

Closed
informatique4ipbs opened this issue Oct 4, 2018 · 4 comments
Closed

REDMINE_DB_PORT not working #130

informatique4ipbs opened this issue Oct 4, 2018 · 4 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@informatique4ipbs
Copy link

by modifying the docker-entrypoint.sh as follow, it works as written in the doc.

line 42 : file_env 'REDMINE_DB_PORT' "${MYSQL_ENV_MYSQL_USER:-3306}"
line 50 : file_env 'REDMINE_DB_PORT' "${POSTGRES_ENV_POSTGRES_PORT:-5432}"

by the way when i play the dockerfile for https://github.com/docker-library/redmine/blob/ba719a0b180982a45d994e0ab66ac7a4ea106bfe/3.4/Dockerfile it compains with bad gnupg keys for GOSU ...
hope this helps

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Oct 4, 2018
@tianon
Copy link
Member

tianon commented Oct 4, 2018

Can you provide more details about what you're doing and what about it isn't working?

If you specify REDMINE_DB_PORT with an alternate port, that will be reflected in the generated config/database.yml file.

@informatique4ipbs
Copy link
Author

informatique4ipbs commented Oct 5, 2018

Hi,
for example if i launch ther redmine image with "-e REDMINE_DB_PORT=5434 -e REDMINE_DB_POSTGRES=10.59.64.18 " it continues to try to contact the machine 10.59.64.18:5432 (If i see the "docker logs " it complains about port 5432) and not 10.59.64.18:5434. With the modification i propose i works as expected (at least for me :-})

For the GOSU problem, juste take a fresh install of a debian stretch and a fresh install of docker, then try to play the Dockerfile, you will see the errors.

@yosifkit
Copy link
Member

yosifkit commented Oct 5, 2018

  1. I am unable to reproduce. Can you give the full commands of what exactly was run and any log output? Did you have any filled volumes before starting? (the parts in question only run if config/database.yml is not a file)

  2. what was the exact error? The fingerprint for Tianon's key in the Dockerfile is the correct one. Most likely the error was address not available or key XXXXXX can't be retrieved (gpg: keyserver receive failed: Address not available httpd#66 and gpgkey cannot be retrieved mysql#263, respectively).

@wglambert
Copy link

Since there isn't anything denoting an error with the image I'm going to close. If you do find something otherwise then I can re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

4 participants