2022-03-03 13:33:33 +03:00
2022-03-03 13:02:31 +03:00
2022-03-03 12:23:53 +03:00
2022-03-03 13:02:31 +03:00
2022-03-03 12:23:53 +03:00
2022-03-03 13:02:31 +03:00
2022-03-03 13:02:31 +03:00
2022-03-03 12:23:53 +03:00

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>
    
Description
No description provided
Readme 29 KiB
Languages
Makefile 100%