Code Monkey home page Code Monkey logo

poorman-registry's Introduction

logo

Poor Man Registry

A poor man's registry that redirect to Chainguard's container registry.

License: MIT Build status

Run on Google Cloud

Motivation

  • The public, free tier of Chainguard Images only serves latest tag. This could be of inconvenience so we build this to continously watching Chainguard registry for digest changes and extract the package version via SBOM. We then tag the image according with the packaged software version and serve via this proxy.

Usage

go run main.go server --config=config.yaml

How it works

sequenceDiagram
autonumber
actor U as User
participant RR as Proxy
participant DB as Local Digest Database
participant CG as Chainguard Images
U->>+RR: Pull command `nginx:1.0.0`
RR->>+DB: Check if digest existed for `nginx:1.0.0`
DB-->>-RR: Found digest for `nginx:1.0.0`
RR-->>-U: Return digest if found

loop Every x Minutes
RR->>CG: Periodically checking `latest` tag for digest change
RR->>DB: Save digest for this tag to local db
end


RR->>CG: Proxied every other APIs

poorman-registry's People

Contributors

jacobnguyenn avatar dependabot[bot] avatar sweep-ai[bot] avatar

Stargazers

Trung Duong avatar  avatar Tho Manh avatar Phước Trung avatar  avatar vishnummv avatar Josh Dolitsky avatar  avatar Kevin avatar kaahos avatar Serge Simard avatar Oliver Mannion avatar  avatar l2D avatar Sandalots avatar Emil V avatar Engin Diri avatar astrolemonade avatar Henry Sachs avatar Nam Tran avatar  avatar  avatar Dung LT. avatar Stanley Nguyen avatar Thomas Strömberg avatar velniukas avatar Henry Vu avatar Ignacio Stambuk avatar Quang Anh Tran avatar Duong Pham avatar  avatar Tuyen Vd. avatar Tuan Anh Tran avatar

Watchers

Tuan Anh Tran avatar  avatar

poorman-registry's Issues

ACTION REQUIRED: Changes to pulling Chainguard Images

Hey there Chainguard here.

We noticed that you are using Chainguard Images, thank you! We wanted to make you aware of an upcoming change that will impact your project.

Starting August 16, 2023 public users will no longer be able to pull images from our registry (cgr.dev/chainguard) by tags other than latest or latest-dev. Please see the announcement for more information.

You are currently using the following.

In https://github.com/nduyphuong/poorman-registry/blob/098bffbf72f194af8521062b8c3ca1ada869d9d3/services/container-registry/registry_test.go:

  • cgr.dev/chainguard/nginx:1.25.1

Our goal is to prevent your project from experiencing any disruptions. Please see the migration guide for options.

If there's more we can do to help please reply to this issue or email us at [email protected].

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.