Closed ericcurtin closed 1 month ago
I think this is a good idea.
Also adding a way to specify that which is the default registry to pull images on shortnames. In Podman shortname expansion is handled via
# Adding something that stated
unqualified-search-registrie = [ "huggingface", "ollama", "quay.io" ]
Should tell ramalama to search for a shortname without a shortnames.conf expansion first in huggingface, then in ollama and finally in "quay.io"
Obviously the user would have the opportunity modify this file and change the search path.
The podman file for this is:
$ grep -v "^#" /etc/containers/registries.conf unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "docker.io"] short-name-mode = "enforcing"
so I guess the ramalama equivalent would be:
/etc/ramalama/registries.conf
Yes I think that makes sense, although perhaps we should use /usr/share/ramalama/registries.conf and then allow sysadmins to override in /etc/ramalama.
podman has this concept of shortnames, which look like this:
/etc/containers/registries.conf.d/000-shortnames.conf
Create something similar
/etc/ramalama/registries.conf.d/000-shortnames.conf
that can do the same for ramalama modelsSuggested by @rhatdan in https://github.com/containers/ramalama/pull/35