Files
cluster/main.go
loveuer 29088a6b54 feat: complete OCI registry implementation with docker push/pull support
A lightweight OCI (Open Container Initiative) registry implementation written in Go.
2025-11-09 22:50:13 +08:00

25 lines
393 B
Go

package main
import (
"context"
"log"
"os/signal"
"syscall"
"time"
"gitea.loveuer.com/loveuer/cluster/internal/cmd"
)
func init() {
time.LoadLocation("Asia/Shanghai")
}
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
if err := cmd.Run(ctx); err != nil {
log.Fatalf("Failed to run command: %v", err)
}
}