Open EvoXCX opened 7 months ago
We're still in a "rebuild" phase (the project was mostly abandoned for the last few years) and documentation is therefore yet to come. (For context and future reference: You would find the docs in the code as it was/will be mostly a generated documentation but it's not very trivially understandable right now. I opened up a PR to add a Tutorial (current version), but from your configuration example it seems like you already understand it.)
What you probably want is something along the following:
[[publish."docker/bookworm"]]
gpg-key = "<GPG_KEY>"
skip-contents = true
automatic-update = true
components = "main"
distribution = "bookworm"
[[publish."docker/bookworm".snapshots]]
name = "bookworm-main-%T"
timestamp = "current"
archive-on-update = "archived-bookworm-main-%T"
From what I've seen in the codebase (still getting into it) pyaptly doesn't understand/differentiate endpoint/prefix. It just handles it as a string.
EDIT: It might be helpful - when snapshots, etc. are already there - to run pyaptly publish config.toml create --info --pretend
. This will show you the exact pyaptly commands that would be run without actually running them (but be aware that --pretend
currently doesn't work with mirror updates).
Hello @Melkor333,
Thanks for your quick response :)
Maybe adding endpoint =
option in future release can help to better understand this.
Have a good day !
@EvoXCX @Melkor333 I am really rusty with aptly, so I read the pyaptly code and we just statically put publish_name
into endpoints
. As long moving out endpoint
doesn't break the unique-constraint of publish_name
we can do that. If swift:myrepo
and s3:myrepo
can exist we have a problem with the config-structure. Since we can't have two keys called myrepo
. Maybe aptly doesn't support that either, so we have no problem. Otherwise the user has to resolve unique constraint by calling the repos: swift:swift-myrepo
and s3:s3-myrepo
. If I am saying something stupid, I currently can't even imagine how this non-local endpoints work.
Maybe good documentation would be better?
Actually I confused it. Simply speaking It's just a prefix containing a /
. The endpoint would be seperated by a :
!
Yeah therefore better documentation is the way to go! :)
Hello,
I need to setup some repositories, but for some reason I need to publish by example docker mirrors, like this:
There is no documentation for the project or to be more precise since docs.adfinis-sygroup.ch stopped, probably. Can you port documentation on Github ?
Or please, can you help me to configure the local publish endpoint ?