A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
1package main
2
3import (
4 "os"
5
6 "github.com/distribution/distribution/v3/registry"
7 _ "github.com/distribution/distribution/v3/registry/auth/token"
8 _ "github.com/distribution/distribution/v3/registry/storage/driver/inmemory"
9
10 // Register our custom middleware
11 _ "atcr.io/pkg/appview/middleware"
12)
13
14func main() {
15 // The serve command is registered in serve.go via init()
16 // Just execute the root command
17 if err := registry.RootCmd.Execute(); err != nil {
18 os.Exit(1)
19 }
20}