image-cache
/image-cache
Udostępnia warstwy budowania Docker i ciężkie obrazy między sesjami w chmurze przez ghcr.io.
- Autor
- Paradiddle131 ↗
- Repozytorium
- loadout ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Udostępnia warstwy budowania Docker i ciężkie obrazy między sesjami w chmurze przez ghcr.io.
Wyzwalacze z opisu
Oryginalny opis (EN)
Shares Docker build layers and heavy images between cloud sessions through the owner's ghcr.io. Use when a repo's image build is slow on cloud, when a session pulls or pushes ghcr.io images, or when a heavy tool image should be prebuilt once.
Jak działa
- Access
- Which shape
- Reference
Podgląd SKILL.md
---
name: image-cache
description: Shares Docker build layers and heavy images between cloud sessions through the owner's ghcr.io. Use when a repo's image build is slow on cloud, when a session pulls or pushes ghcr.io images, or when a heavy tool image should be prebuilt once.
---
# Image cache on ghcr.io
A cloud session starts with an empty Docker cache, so every image builds from scratch.
The owner's ghcr.io namespace is the shared cache: one session writes it, the next reads it.
`<owner>` and `<repo>` below are the GitHub owner and name of the repo being built, lower-cased (`git remote get-url origin`).
## Access
The egress proxy logs every ghcr.io request in as the owner (a token with `read:packages` and `write:packages`, injected as `Authorization: Bearer <base64 token>`).
Pull and push with plain `docker`; `GITHUB_TOKEN` and `GH_TOKEN` hold placeholders, so a `docker login` would only send the wrong credential.
Check it first: `curl -s -o /dev/null -w '%{http_code}' https://ghcr.io/v2/` answers `200`.
A `403` with `invalid token` means the environment's ghcr.io secret is wrong (a raw token instead of its base64): a `You:` item for the owner, not something to work around.
## Which shape
- **Layer cache** (the default, for an image the repo builds): BuildKit reads and writes the cache beside the build, so nobody pushes by hand and a changed input simply misses.
Add to the repo's single build entry point, per image:
`--cache-from type=registry,ref=ghcr.io/<owner>/<repo>/<image>:buildcache --cache-to type=registry,ref=ghcr.io/<owner>/<repo>/<image>:buildcache,mode=max,ignore-error=true`.
`mode=max` keeps the builder stages of a multi-stage build; `ignore-error=true` keeps a failed cache write from failing the build.
Turn it on by default where the proxy is (cloud) and leave it opt-in on a machine without it, which needs a `docker login ghcr.io` first.
Give each image its own cache name: two images on one name overwrite each other's cache.
- **Prebuilt image** (a heavy tool or base the session runs but does not build): build it once, push an immutable version tag, and have consumers name the tag and its digest.
A Dockerfile change means a new version tag, pushed from the session that made the change; an existing tag is never pushed over.
Cache what takes minutes: a build over a minute, or a pull every session repeats.
A cache write uploads every new layer, so a build that takes seconds gains nothing; a warm cache typically cuts a multi-image rebuild to a fraction of its cold time.
## Reference
- ghcr.io's billing terms for container storage and bandwidth are on [GitHub Packages billing](https://docs.github.com/en/billing/concepts/product-billing/github-packages); read them before caching tens of GB.
- New packages are private and belong to the owner's account; a repo-scoped name (`<repo>/<image>`) keeps them grouped.
- Builds that reach PyPI or npm also need the proxy's CA inside the build (cloud `CLAUDE.md`, Containers); the cache does not replace it.
Wersje
W bazie nie ma innych skilli o nazwie image-cache.
Migawka bazy z 13.11.2026 · wersja paczki bf52701f8ec6 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100find-docker-image
Znajduje istniejące tagi obrazów Docker w GHCR dla agenta Hyperlane, monorepo i usług node, także dla gałęzi, commitów i bieżących wdrożeń. - 100deploy
Wdraża aplikacje kontenerowe na zdalne serwery: buduje obrazy Docker, wypycha je do GHCR i wdraża przez SSH z weryfikacją health. - 100github-actions
Wyjaśnia i konfiguruje GitHub Actions: workflowy YAML, testy przy każdym pull requeście, cache zależności, macierze, wdrożenia, obrazy Docker w ghcr.io, wyzwalacze, sekrety, środowiska i uprawnienia. - 100docker-build-deploy
Konteneryzuje aplikację Node.js i konfiguruje CI/CD w GitHub Actions, które buduje obraz, wypycha go do GHCR i wdraża przez SSH, z buildem wieloetapowym, użytkownikiem non-root i cache. - 100render-docker
Buduje i wdraża kontenery Docker na Render: Dockerfile, wieloetapowe buildy, pola Docker w Blueprint, prywatne rejestry (GHCR, ECR), cache warstw i ograniczenia platformy. - 100render-docker
Buduje i wdraża kontenery Docker na Render: Dockerfile, wieloetapowe buildy, pola Docker w Blueprint, prywatne rejestry (GHCR, ECR), cache warstw i ograniczenia platformy.