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

Await SSH tunnel init using docker exec + exit code #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Apelsin
Copy link

@Apelsin Apelsin commented Mar 3, 2020

Waiting for the SSH tunnel to be ready should take place in the docker-push-ssh-tunnel container and not the host. This fixes issues where the calling container is unable to reach the registry but the tunnel container is, because the tunnel is established through that container.

Allows docker-push-ssh to be called inside of a docker container and check the tunnel status through docker inversion of control (by mounting the docker socket in the calling container).
@brthor
Copy link
Owner

brthor commented Mar 27, 2020

Please rebase this on master. @Apelsin

continue

if response.getcode() == 200:
sshCheckCommandResult = Command("docker", [
Copy link
Owner

Choose a reason for hiding this comment

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

Does wget have a default timeout? Is it possible to match the 5 second timeout as was the previous behavior?

jonashaag added a commit to jonashaag/docker-push-ssh that referenced this pull request Sep 7, 2020
@jonashaag jonashaag mentioned this pull request Sep 7, 2020
samsonjs added a commit to samsonjs/docker-push-ssh that referenced this pull request Jan 15, 2022
This change is from a different pull-request that was never finished. It
adds a 5-second timeout to the wget command as requested in that PR.

brthor#10
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

2 participants