Skip to content

Commit

Permalink
feat: add support for docker images
Browse files Browse the repository at this point in the history
Issue project-zot#724

Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Oct 9, 2024
1 parent c89be3a commit c5d706b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/storage/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
imeta "github.com/opencontainers/image-spec/specs-go"
ispec "github.com/opencontainers/image-spec/specs-go/v1"

docker "github.com/distribution/distribution/v3/manifest/schema2"
zerr "zotregistry.dev/zot/errors"
zcommon "zotregistry.dev/zot/pkg/common"
"zotregistry.dev/zot/pkg/extensions/monitoring"
Expand Down Expand Up @@ -797,7 +798,8 @@ func getBlobDescriptorFromManifest(imgStore storageTypes.ImageStore, repo string

func IsSupportedMediaType(mediaType string) bool {
return mediaType == ispec.MediaTypeImageIndex ||
mediaType == ispec.MediaTypeImageManifest
mediaType == ispec.MediaTypeImageManifest ||
mediaType == docker.MediaTypeManifest
}

func IsNonDistributable(mediaType string) bool {
Expand Down

0 comments on commit c5d706b

Please sign in to comment.