Installing rsync on docker host behind a proxy
marzolfb opened this issue · 4 comments
marzolfb commented
Ran into this:
2015-11-13 08:28:58 [INFO] Installing rsync in the Docker Host image
Downloading: rsync.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: download timed out
md5sum: rsync.tcz.md5.txt: No such file or directory
Error on rsync.tcz
exit status 1
exit status 127
2015-11-13 08:29:44 [INFO] Failed to install rsync using tce-load, falling back to install rsync from pre-built binary in docker-osx-dev GitHub repo
Connecting to raw.githubusercontent.com (199.27.76.133:443)
wget: error getting response: Connection reset by peer
exit status 1
I worked around it by changing this line:
if ! $DOCKER_HOST_SSH_COMMAND "if ! type rsync > /dev/null 2>&1; then tce-load -wi rsync; fi"; then
to this:
if ! $DOCKER_HOST_SSH_COMMAND "if ! type rsync > /dev/null 2>&1; then http_proxy='http://myproxyuser:myproxypassword@myproxyaddress:myproxyport/' tce-load -wi rsync; fi"; then
brikis98 commented
Do you know if a lot of developers are likely to be behind a similar proxy? If so, I'd be happy to accept a PR to add a proxy parameter and pass it through to the rsync install. If it's a fairly uncommon thing, then at least with this bug filed, other developers who hit this will be able to find a workaround.
ain commented
PR could be there anyway, but IMHO, it's not really something that is common. Working behind the proxy for any developer is generally painful and something to avoid.