🧽 Clean up old and stale atcr.io tags and manifests
0

Configure Feed

Select the types of activity you want to include in your feed.

Go 97.9%
Dockerfile 2.1%
2 1 0

Clone this repository

https://git.vm.fail/cuducos.me/atcr-clean-up https://git.vm.fail/did:plc:ljq2ukwdvscekjpxd2hlfcuq
ssh://git@knot1.tangled.sh:2222/cuducos.me/atcr-clean-up ssh://git@knot1.tangled.sh:2222/did:plc:ljq2ukwdvscekjpxd2hlfcuq

For self-hosted knots, clone URLs may differ based on your setup.


README.md

AT Container Registry Clean Up#

Deletes old io.atcr.tag and io.atcr.manifest records from your PDS. The atcr.io garbage collector will deference and free up storage space from there (not immediately).

Usage#

Requires ATPROTO_HANDLE and ATPROTO_APP_PASSWORD.

Important: not setting -repo means all repositories.

From source#

First, build it:

$ go build ./...

Then use it:

$ atcr-clean-up -days <N> [-repo <r1> -repo <r2> ...] [-dry-run] [-yes] [-keep <tag>] [-log-level <level>]

From container#

First pull it:

$ podman pull atcr.io/cuducos.me/atcr-clean-up:latest

Then use it:

$ podman run -it --rm --env ATPROTO_HANDLE=handle.or.did --env ATPROTO_APP_PASSWORD=password atcr.io/cuducos.me/atcr-clean-up -days <N>