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 retry option to curl when uploading certificates #17

Merged
merged 7 commits into from
Mar 27, 2017

Conversation

jorianvo
Copy link
Contributor

Using docker swarm it can happen that a docker-flow-letsencrypt container starts before a docker-flow-proxy container. When that is the case curl fails (stating it is unable to resolve host ...). So I added a retry mechanism and curl will try again if it fails.

jorianvo added 7 commits March 26, 2017 18:21
Add a retry option in case curl fails
Fix updating the wrong variable
Move counter update to the end of the loop, so our counter logic is
valid
Add options to curl to hide the progress bar but show errors which can
be helpful
Move counter back to the beginning as this avoids any logic in the print
statement
Move sleep statement to avoid unnecessary sleep
@hamburml
Copy link
Owner

Thanks! This looks good, will accept the pull request. Can't test it right now but it looks perfect 👍 When I find some time to test it I will make a new release.

@hamburml hamburml merged commit 881320f into hamburml:master Mar 27, 2017
@jorianvo
Copy link
Contributor Author

Thanks!

@hamburml
Copy link
Owner

https://hub.docker.com/r/hamburml/docker-flow-letsencrypt/tags/ Latest-Tag is already newest version.

@jorianvo
Copy link
Contributor Author

Thanks for the new release, works like a charm!

@patrickleet
Copy link

@hamburml it would be great if you could release as a version number as well.. maybe 1.2

@hamburml
Copy link
Owner

hamburml commented Mar 27, 2017

@patrickleet Will do. The master branch is automatically build by docker-cloud as latest tag. That's the reason why I mentioned it. Will create the tag right now. v0.1.2 is now available https://hub.docker.com/r/hamburml/docker-flow-letsencrypt/tags/

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

Successfully merging this pull request may close these issues.

None yet

3 participants