fe20b9955d | ||
---|---|---|
gogs | ||
proxy | ||
registry | ||
repo | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
docker-compose.yml |
README.md
Gogs + Athens mod proxy + Docker Registry running with Docker Compose
How to start
- Clone this repo.
- Set value for the
SECRET_KEY
in thedata\config\app.ini
(e.g. using www.random.org). - Run
make up
to start all.
How to stop
- Run
make down
to stop all containers.
Settings
See Gogs configuration cheat sheet, Configuring Athens and Docker documentation for more information.
How to use
Gogs listening on http://localhost:3000
Downloading go packages through atens proxy:
-
in general case:
export GOPROXY=http://localhost:3001 && go get ./...
-
io refill proxy cache:
go clean --modcache && export GOPROXY=http://localhost:3001 && go get ./...
Copy an image from Docker Hub to your registry
-
pull an image from Docker Hub and push it to your registry:
make image name=<image_name:version>
-
pull an image from your local registry:
docker pull localhost:5000/<image_name:version>