diff options
Diffstat (limited to 'docker/git-proxy')
-rwxr-xr-x | docker/git-proxy | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docker/git-proxy b/docker/git-proxy new file mode 100755 index 0000000..6ad09ec --- /dev/null +++ b/docker/git-proxy @@ -0,0 +1,20 @@ +#!/bin/bash + +# This simple proxy script (for git) resides at /opt/bin in the gitrefineryapp +# container. If you use it, uncomment the appropriate line in .gitproxy +# this method has been tested using a socks proxy +PROXY=proxy-us.intel.com +PORT=911 + +case $1 in + ## NO_PROXY + ) + METHOD="-X connect" + ;; + *) + METHOD="-X 5 -x ${PROXY}:${PORT}" + ;; +esac + +# BSD netcat is used to connect +/bin/nc $METHOD $* |