Go to file
Andrey Ivanov fe20b9955d Add target for pulling images into registry 2022-03-03 13:33:33 +03:00
gogs Add local docker registry 2022-03-03 13:02:31 +03:00
proxy Initial 2022-03-03 12:23:53 +03:00
registry Add local docker registry 2022-03-03 13:02:31 +03:00
repo Initial 2022-03-03 12:23:53 +03:00
.gitignore Add local docker registry 2022-03-03 13:02:31 +03:00
LICENSE Initial 2022-03-03 12:23:53 +03:00
Makefile Add target for pulling images into registry 2022-03-03 13:33:33 +03:00
README.md Add target for pulling images into registry 2022-03-03 13:33:33 +03:00
docker-compose.yml Add local docker registry 2022-03-03 13:02:31 +03:00

README.md

Gogs + Athens mod proxy + Docker Registry running with Docker Compose

How to start


  1. Clone this repo.
  2. Set value for the SECRET_KEY in the data\config\app.ini (e.g. using www.random.org).
  3. Run make up to start all.

How to stop


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