1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-07 00:32:28 +00:00
No description
Find a file
Jason Hall eb074f3593
Merge pull request #175 from imjasonh/tf
deploy using terraform
2023-04-27 14:43:57 -04:00
.github fix CI 2023-04-26 14:09:35 -04:00
cmd deploy using terraform 2023-04-25 10:56:19 -04:00
module handle base images and root domain 2023-04-26 11:29:30 -04:00
pkg Add estargz optimizer, log Range requests 2021-07-24 22:03:08 -04:00
.gitignore deploy using terraform 2023-04-25 10:56:19 -04:00
.terraform.lock.hcl deploy using terraform 2023-04-25 10:56:19 -04:00
cors.json Enable CORS for mirror.kontain.me 2022-06-09 22:27:00 -04:00
deploy.sh ensure CORS is enabled when deploying 2022-06-10 09:01:43 -04:00
go.mod fix CI, bump ko 2023-04-26 13:24:42 -04:00
go.sum fix CI, bump ko 2023-04-26 13:24:42 -04:00
LICENSE Use ko to build, add LICENSE headers 2018-12-08 17:56:33 -05:00
main.tf fix CI, bump ko 2023-04-26 13:24:42 -04:00
README.md deploy using terraform 2023-04-25 10:56:19 -04:00
test.sh -name 2021-09-22 11:57:48 -04:00

kontain.me

CI Deploy

Serving container images generated on-demand, at the time they are requested.

These include:

This repo also serves viz.kontain.me, which visualizes shared image layers using Graphviz.

Caveats

  • The registry does not accept pushes.
  • This is a silly hack and probably isn't stable. Don't rely on it for anything serious.
  • It could probably do a lot of smart things to be a lot faster. 🤷
  • Blobs and manifests are cached for 24 hours wherever possible, but will be rebuilt from scratch after that time.

How it works

The service is implemented using Google Cloud Run.

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 blobs to Google Cloud Storage. After it receives the manifest, docker pull fetches the blobs. The app simply redirects to Cloud Storage to serve manifests and blobs.