You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// create a new componentcmp:=builder.New("ocm.software/test", "v1.0.0", "acme.org")
// create resourcesresources:= []v2.Resource{
file.Resource("data", "config.yaml"),
oci.Resource("web-server", "docker.io/nginx:1.25.2"),
oci.Resource("redis", "docker.io/redis:latest"),
}
// add the resources to the componentcmp=mutate.WithResources(cmp, resources...)
// setup the remote OCI repositoryrepo, err:=oci.Repository("ghcr.io/reshnm/components")
iferr!=nil {
log.Fatal(err)
}
// write the component to the remote repositoryiferr:=repo.Write(cmp); err!=nil {
log.Fatal(err)
}
The component was writte but is not readable by the oci client:
ocm get componentversions --repo OCIRegistry::ghcr.io/reshnm/components ocm.software/test
Error: error processing "ocm.software/test": artifact is no component: application/vnd.docker.container.image.v1+json
Is was writing a component to an oci repository:
The component was writte but is not readable by the oci client:
ocm get componentversions --repo OCIRegistry::ghcr.io/reshnm/components ocm.software/test Error: error processing "ocm.software/test": artifact is no component: application/vnd.docker.container.image.v1+json
Manifest:
The text was updated successfully, but these errors were encountered: