Open kumy opened 9 years ago
As an alternative we could also publish daily snapshots as:
$ aptly publish snapshot -distribution="trusty-snapshots-20150207" -component="main" ubuntu-security-trusty_20150207 ubuntu-security
$ aptly publish snapshot -distribution="trusty-snapshots-20150208" -component="main" ubuntu-security-trusty_20150208 ubuntu-security
tree -d dists/
dists/
|-- trusty
| `-- main
| |-- binary-all
| |-- binary-amd64
| `-- binary-i386
|-- trusty-snapshots-20150207
| `-- main
| |-- binary-all
| |-- binary-amd64
| `-- binary-i386
`-- trusty-snapshots-20150208
`-- main
|-- binary-all
|-- binary-amd64
`-- binary-i386
@kumy in short aptly doesn't support distribution names with /
in it. All published repositories under the same prefix share pool
directory.
The difficulty with /
in distribution names is possible complexity with directory handling for such case. Most probably it is possible to implement that, but I need to investigate this case
The alternative method I proposed doesn't work with debootstrap
$ fakeroot debootstrap trusty-snapshot-20150209 mytest http://localhost/distrib/ubuntu/
E: No such script: /usr/share/debootstrap/scripts/trusty-snapshot-20150209
This is also what we are looking for.
Is there a way to do this?
I investigated the use of components for this, but then if a snapshot is bad, deleting experience is horrible:
aptly publish ... -component=new-snapshot-version ...
because it will consider the distro is already published.It seems impossible to have a versioned repo that way.
No comment on closing?
@evrardjp mmm I suspect this issue was closed by mistake, as it has a relatively recent comment (yours).
I know we're warned about such a config, but it could have advantages.
"It is not allowed to publish two repositories or snapshots to the same prefix and distribution."
(Here we used to run reprepro for our internal mirrors. And we're planning moving to aptly)
We were able to provide daily snapshots of mirrors, each of them sharing the same
/pool
.I've found that I can publish daily snapshots in different subdirs, ie:
But this has (for us) the real disadvantage of multiplying /pool directories.
What's not "cool" with that is, that we use caching proxies. Many servers depends on different snapshots. Caching is not efficient, as the storing hash key is the
.deb
full path.If all servers download, let's say the same
openssl_[...].deb
from differents snapshots, then we'll not be able to serve cached content from the 1st request, we'll cache multiple times the same.deb
(as of md5 speaking).I tried to "play" with the
-distribution
argument, but no successSomething like that seem to be related to issue #115
Is there another method for doing such thing ? Do you think it could be implemented ? How could I help you ?
Reprepro doc on
gensnapshot
:aptly 0.9~dev+180+g7925af9