cbc9957e29
Use this command in cmd/registry/main.go. Move debug server to the main command, and change Serve to be a ListenAndServe function. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
22 lines
833 B
Go
22 lines
833 B
Go
package main
|
|
|
|
import (
|
|
_ "net/http/pprof"
|
|
|
|
"github.com/docker/distribution/registry"
|
|
_ "github.com/docker/distribution/registry/auth/htpasswd"
|
|
_ "github.com/docker/distribution/registry/auth/silly"
|
|
_ "github.com/docker/distribution/registry/auth/token"
|
|
_ "github.com/docker/distribution/registry/proxy"
|
|
_ "github.com/docker/distribution/registry/storage/driver/azure"
|
|
_ "github.com/docker/distribution/registry/storage/driver/filesystem"
|
|
_ "github.com/docker/distribution/registry/storage/driver/inmemory"
|
|
_ "github.com/docker/distribution/registry/storage/driver/middleware/cloudfront"
|
|
_ "github.com/docker/distribution/registry/storage/driver/oss"
|
|
_ "github.com/docker/distribution/registry/storage/driver/s3"
|
|
_ "github.com/docker/distribution/registry/storage/driver/swift"
|
|
)
|
|
|
|
func main() {
|
|
registry.Cmd.Execute()
|
|
}
|