Sign inSign up

knocknote/goproxy

By knocknote

•Updated over 7 years ago

proxy for go modules ( supports private repository )

Image
0

10K+

knocknote/goproxy repository overview

⁠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.

Tag summary

Content type

Image

Digest

Size

39.5 MB

Last updated

over 7 years ago

docker pull knocknote/goproxy