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

Fix docker entrypoint errors introduced by #715 #721

Merged

Conversation

bmclaughlin
Copy link
Contributor

@bmclaughlin bmclaughlin commented Apr 12, 2021

  • Unset variable errors reported on line 100
  • TCP port localhost:6379 not available
    Issue: AAH-486

@bmclaughlin bmclaughlin changed the title Fix errors caused by #715 Use PULP_REDIS_URL Apr 12, 2021
@bmclaughlin bmclaughlin changed the title Use PULP_REDIS_URL Fix docker entrypoint errors introduced by #715 Apr 12, 2021
@hendersonreed
Copy link
Contributor

This looks good to me, going to check out the fork and verify it works as expected.

@ZitaNemeckova
Copy link
Member

Works for me :)

protocol="rediss://"
else
protocol="redis://"
fi

if [[ -z "$PULP_REDIS_PASSWORD" ]]; then
if [[ ${PULP_REDIS_PASSWORD:-nopassword} = "nopassword" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ ${PULP_REDIS_PASSWORD:-nopassword} = "nopassword" ]]; then
if [[ -z "${PULP_REDIS_PASSWORD:-}" ]]; then

# settings for RQ in pulpcore/rqconfig.py
p_redis_host="${PULP_REDIS_HOST:-localhost}"
p_redis_port="${PULP_REDIS_PORT:-6379}"
redis_connection_hack
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can move it below wait-for-tcp to avoid variable assignments

@bmclaughlin bmclaughlin force-pushed the bug/fix-pulp-redis-ssl-breakage branch from 59d2218 to 03d45f8 Compare April 13, 2021 13:51
@bmclaughlin bmclaughlin merged commit 76f1d53 into ansible:master Apr 13, 2021
@bmclaughlin bmclaughlin deleted the bug/fix-pulp-redis-ssl-breakage branch April 13, 2021 14:08
awcrosby pushed a commit that referenced this pull request Apr 13, 2021
* Fixed unset variable and tcp port unavailable errors
* Improve password check
* Avoid reassigning variables
Issue: AAH-486
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants