1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-07 00:32:28 +00:00

readme: links to oci.dag.dev

Signed-off-by: Jason Hall <imjasonh@gmail.com>
This commit is contained in:
Jason Hall 2026-05-14 11:21:27 -04:00
parent c7ea6912f0
commit f70dbcb83d
3 changed files with 14 additions and 11 deletions

View file

@ -8,18 +8,22 @@ Serving container images generated on-demand, at the time they are requested.
These include: These include:
* [`random.kontain.me`](./cmd/random), which serves randomly-generated images. * [`random.kontain.me`](./cmd/random), which serves randomly-generated images.
- [browse](https://oci.dag.dev/?image=random.kontain.me/random)
* [`mirror.kontain.me`](./cmd/mirror), which pulls and caches images from other registries. * [`mirror.kontain.me`](./cmd/mirror), which pulls and caches images from other registries.
- [browse](https://oci.dag.dev/?image=mirror.kontain.me/busybox)
* [`flatten.kontain.me`](./cmd/flatten), which pulls and flattens images from other registries, * [`flatten.kontain.me`](./cmd/flatten), which pulls and flattens images from other registries,
so they contain only one layer. so they contain only one layer.
- [browse](https://oci.dag.dev/?image=flatten.kontain.me/cgr.dev/chainguard/go)
* [`ko.kontain.me`](./cmd/ko), which builds a Go binary into a container image using * [`ko.kontain.me`](./cmd/ko), which builds a Go binary into a container image using
[`ko`](https://github.com/google/ko). [`ko`](https://github.com/google/ko).
- [browse](https://oci.dag.dev/?image=ko.kontain.me/github.com/ko-build/ko/test)
* [`apko.kontain.me`](./cmd/apko), which builds a minimal base image containing * [`apko.kontain.me`](./cmd/apko), which builds a minimal base image containing
APK packages, using [`apko`](https://apko.dev). APK packages, using [`apko`](https://apko.dev).
- [browse](https://oci.dag.dev/?image=apko.kontain.me/kubectl)
* [`git.kontain.me`](./cmd/git), which serves an image containing a shallow * [`git.kontain.me`](./cmd/git), which serves an image containing a shallow
clone of a Git repo at a given branch, tag, or commit, using clone of a Git repo at a given branch, tag, or commit, using
[`go-git`](https://github.com/go-git/go-git). [`go-git`](https://github.com/go-git/go-git).
* [`wait.kontain.me`](./cmd/wait), which enqueues a background task to serve a - [browse](https://oci.dag.dev/?image=git.kontain.me/github.com/imjasonh/kontain.me)
random image after some amount of time.
This repo also serves a few non-registry oddities: This repo also serves a few non-registry oddities:
@ -41,8 +45,7 @@ This repo also serves a few non-registry oddities:
# How it works # How it works
The service is implemented using [Google Cloud The service is built on [Google Cloud Run](https://cloud.google.com/run).
Run](https://cloud.google.com/run).
When the service receives a request for an image manifest, it parses the When the service receives a request for an image manifest, it parses the
request and generates layers for the requested image, writing the manifest and request and generates layers for the requested image, writing the manifest and

12
apps.tf
View file

@ -38,12 +38,12 @@ locals {
timeout_seconds = 60 # 1m timeout_seconds = 60 # 1m
//alert_id = module.prober.alert_id //alert_id = module.prober.alert_id
} }
wait : { # wait : {
cpu = 1 # cpu = 1
ram = "1Gi" # ram = "1Gi"
container_concurrency = 80 # container_concurrency = 80
timeout_seconds = 60 # 1m # timeout_seconds = 60 # 1m
} # }
# "viz" : { # "viz" : {
# cpu = 1 # cpu = 1
# ram = "1Gi" # ram = "1Gi"

View file

@ -8,7 +8,7 @@ import (
"github.com/google/go-containerregistry/pkg/v1/remote/transport" "github.com/google/go-containerregistry/pkg/v1/remote/transport"
) )
var ErrNotFound = errors.New("repository or commit not found") var ErrNotFound = errors.New("not found")
func Error(w http.ResponseWriter, err error) { func Error(w http.ResponseWriter, err error) {
code := "MANIFEST_UNKNOWN" code := "MANIFEST_UNKNOWN"