Go to file
James Mills 5053e78599 Fixed Dockerfile build and runtime 2019-01-10 16:10:57 +08:00
.circleci refactor: pure go 2018-12-25 17:36:32 +08:00
build Fixed Dockerfile build and runtime 2019-01-10 16:10:57 +08:00
pkg/proxy mix(scm&structure): 2019-01-09 10:27:51 +08:00
scripts fix (latest & list): 2018-12-26 21:14:10 +08:00
.gitignore mix(scm&structure): 2019-01-09 10:27:51 +08:00
Dockerfile Fixed Dockerfile build and runtime 2019-01-10 16:10:57 +08:00
LICENSE Initial commit 2018-08-31 16:27:07 +08:00
Makefile Fixed Dockerfile build and runtime 2019-01-10 16:10:57 +08:00
README.md make readme cleaner 2019-01-09 10:28:12 +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 Fixed Dockerfile build and runtime 2019-01-10 16:10:57 +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

Use docker image

docker run -d -p80:8081 goproxy/goproxy

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

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

Docker Compose

docker-compose up

Appendix

  1. set export GOPROXY=http://localhost to enable your goproxy.
  2. set export GOPROXY= to disable it.