aboutsummaryrefslogtreecommitdiffstats
path: root/docker/git-proxy
blob: 6ad09ec0ae8286be7a238a0ccff3032f3acdaa32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 $*