https://github.com/chainguard-dev/registry-redirect
https://github.com/chainguard-dev/registry-redirect
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chainguard-dev/registry-redirect
- Owner: chainguard-dev
- License: apache-2.0
- Archived: true
- Created: 2022-06-30T18:20:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T19:26:23.000Z (10 months ago)
- Last Synced: 2025-03-22T00:05:28.214Z (2 months ago)
- Language: Go
- Size: 412 KB
- Stars: 29
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OCI Registry Redirector
[](https://github.com/chainguard-dev/registry-redirect/actions/workflows/ci.yaml)
This is a simple OCI redirector service that allows for custom domains, including forwarding auth token requests to the original registry.
For example, this is used to serve `distroless.dev/*` as a redirection to `cgr.dev/chainguard/*`.
It's intended to be deployed to Google Cloud Run behind a GCLB load balancer, which is responsible for handling HTTPS.
## Deploying
First make sure you're logged in to GCP and initialize the Terraform depedencies:
```
gcloud auth login
gcloud auth application-default login
terraform init
```Then build and deploy the service with:
```
$ terraform apply -var project=[MY-PROJECT]
...
url = "https://redirect-a1b2c3d4-uk.a.run.app"
```This requires permission to push images to GCR, and to deploy Cloud Run services and create GCP resources.