Tom Mueller (plain-text) wrote:
Brock Pytlik wrote:
Tom Mueller wrote:
Brock Pytlik wrote:
There are three distinct entities, publishers, streams, and
repositories. Publishers are the entities who put together
distributions, sign packages, etc... Specifically, they distribute
one or more streams (or trains or whatever term we settle on. dev
and release are two examples of streams for the opensolaris.org
publisher.). Repositories are simply collections of packages,
possibly from multiple publishers and multiple streams from those
publishers.
About repositories - first, I'm assuming that there is a distinction
between a pkg.depotd process and a repository. A repository would
be identified by a unique URL, but a pkg.depotd process might
eventually service multiple repositories. Is that right?
No, I think we're suggesting moving to a model where there's a
one-to-one mapping between pkg.depotd process and a repository. But
that depo/repo/process might serve up packages from many streams and
many publishers.
Essentially, we want to move to a model where a repo/depo is just a
container that hands out bits of packages to clients as needed. In
short, the average user should never need to care what repo(s)
they're connected to.
Does that make things clearer?
Not yet. Shawn's reply said that a depot would eventually host
multiple repositories. This is requested in bug 7653.
Ok, I'll try again.
What does "a depot hosting multiple repositories" mean to you? My
interpretation of that is that a single depot could contain packages
from different publishers, and likely both the dev and release. So, to
map this onto new terminology, a single depot can have multiple streams
from multiple publishers, exactly what's been proposed.
How many type of URIs are there that a user needs to know about. Some
of the responses have talked about URIs for a publisher. What would
such a URL look like? For example, for OpenSolaris.org, would the
publisher URI be http://pkg.opensolaris.org/. And when this is
accessed, do you get a p5i file that has the list of streams and the
URIs for the repositories for those streams? For example,
http://pkg.opensolaris.org/release and
http://pkg.opensolaris.org/dev. Are those URIs for streams or
repositories? If a repository is hosting many streams and/or many
publishers, what are the various URIs for those?
In the new world? One. The publisher URI is all that a user will need to
know about. Streams don't have URI's. Depots have URI's. which the user
need never know about. So, I imagine it working something like this: The
user adds pkg.opensolaris.org, that sends back the information (likely a
p5i file, but again that's implementation details not relevant for a UI
discussion since the user will never interact with it) need to identify
p.o.o/repo as a default depo for this publisher. A repo has a single
URI. Streams do not have URIs. A publisher has a single URI which is
entirely distinct from any repo URI's it may suggest. For example, the
publisher foo.com might point a user at a repo at bar.org.
You didn't address the issue below about the distinction between a
stream and a repository.
Because I didn't understand your question in the new world. If what I've
said so far hasn't answered it, please ask it again.
I'm trying to apply this to the SWI case where we having community and
Sun editions of various different products such as GlassFish, WebSpace
Server, Webstack, MQ, MySQL, and OpenDS. In this case, the publishers
might be Sun (for all Sun-branded versions of those), and then
pkg.<project>.org where <project> is different for each one. We would
have dev, release, support, and contrib streams for each product, so
for the Sun publisher, we would have 6*4=24 streams. Then we have 6
OS-platform-specific repositories for each one. So we have to have 144
repositories and depotd processes and each repository has its own
URL. However, through the use of the User-Agent header and an Apache
front-end, users typically only see URLs for the 24 streams.
Now, I'd imagine that a user'd see a single URL, or possibly 6, so your
users would probably enjoy a simpler life.
I'm not yet sure if having the concept of a "stream" makes this easier
to explain than just talking about "repositories".
Why?
Brock
Thanks.
Tom
Brock
So assuming that a repository is identified by a unique URL
(possible with mirrors that are identified by other URLs), what
would be an example of where multiple streams would be served from a
single repository? Also, what would be an example of where packages
from multiple publishers would be coming from a single repository?
I'm wondering if the world would be simpler if we just chose to
limit a repository to containing packages from a single stream from
a single repository. This would make a 1:1 relationship between
stream and repository - effectively the two concepts are the same.
Thanks.
Tom
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss