Go to file
kun 3d49ac1020 fix go get faild in go1.13beta1 2019-07-15 15:19:52 +08:00
.circleci enable GO111MODULE in CI 2019-07-05 16:14:51 +08:00
build fix #63 2019-04-13 10:38:39 +08:00
contrib Added a contrib/goproxy.yml Stackfile for Docker Swarm deployment using Traefik 2019-01-14 11:32:10 +08:00
pkg/proxy fix go get faild in go1.13beta1 2019-07-15 15:19:52 +08:00
scripts fix (latest & list): 2018-12-26 21:14:10 +08:00
test add more tests 2019-07-11 10:53:55 +08:00
.gitignore fix go get faild in go1.13beta1 2019-07-15 15:19:52 +08:00
Dockerfile fix(subpath) & test: 2019-01-22 16:11:40 +08:00
LICENSE Initial commit 2018-08-31 16:27:07 +08:00
Makefile fix(subpath) & test: 2019-01-22 16:11:40 +08:00
README.md use make build bin 2019-07-09 14:39:37 +08:00
docker-compose.yaml fix docker build 2018-12-27 16:31:10 +08:00
go.mod compatible for go 1.11 and go 1.12 2019-03-20 22:28:35 +08:00
main.go compatible for go 1.11 and go 1.12 2019-03-20 22:28:35 +08:00

README.md

GOPROXY CircleCI

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

Build

make

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.