Go to file
hxzhao527 b0865d643c fix(test): 1. solve testdata error 2. update shell to run test 2018-12-29 16:02:33 +08:00
.circleci refactor: pure go 2018-12-25 17:36:32 +08:00
build test(com): 2018-12-29 12:29:11 +08:00
pkg/proxy fix(test): 1. solve testdata error 2. update shell to run test 2018-12-29 16:02:33 +08:00
scripts fix (latest & list): 2018-12-26 21:14:10 +08:00
.gitignore fix docker build 2018-12-27 16:31:10 +08:00
Dockerfile fix docker build 2018-12-27 16:31:10 +08:00
LICENSE Initial commit 2018-08-31 16:27:07 +08:00
README.md fix docker build 2018-12-27 16:31:10 +08:00
circle-test.sh fix(test): 1. solve testdata error 2. update shell to run test 2018-12-29 16:02:33 +08:00
docker-compose.yaml fix docker build 2018-12-27 16:31:10 +08:00
go.mod init 2018-09-01 15:31:53 +08:00
main.go refactor(shutdown): 2018-12-29 12:29:11 +08:00

README.md

GOPROXY CircleCI

A global proxy for go modules. see: https://goproxy.io

Build

go generate
go build

Started

./goproxy -listen=0.0.0.0:80 -cacheDir=/data

Docker build

docker build . --no-cache -t goproxy/goproxy:latest

Docker run

docker run --name goproxy -d -p80:8081 goproxy/goproxy

Use the -v flag to persisting the proxy module data (change cacheDir to your own dir):

docker run --name goproxy -d -p80:8081 -v cacheDir:/go goproxy/goproxy

Docker Compose

docker-compose up

Appendix

  1. set $GOPROXY to change your proxy or disable the proxy