Skip to contentSkip to conversation

Stupid Noob question

DISCUSSION Matthias Schoepfer 3 participants 3 messages Oct 24, 2024

lore
Share & tools
lore
#0 lore raw

Hi!

I am stepping totally out of my comfort zone and had the idea to write a custom fetcher (shall pull docker images O.o). From reading through some of the code of fetch2, I would guess there is no way to register a new fetcher from outside of the bitbake code itself. Please correct me, if I am wrong.

Thanks and Regards,

    Matthias

#1 lore raw
Quoted 5 lines · Matthias Schoepfer via lists.openembedded.org

I am stepping totally out of my comfort zone and had the idea to write a custom fetcher (shall pull docker images O.o). From reading through some of the code of fetch2, I would guess there is no way to register a new fetcher from outside of the bitbake code itself. Please correct me, if I am wrong.

Please remember to write a good subject for your message that tells what it's about.

Fetcher set is non-extensible by design, as allowing easy additions would only result in people writing all sorts of crazy layer-specific stuff that works around restrictions in existing implementations that are there for good reasons.

You're still welcome to add your own fetcher as a way to learn and experiment, but if it's merely pulling things over http with a specific custom URL schema, then that might be implemented in a class instead, reusing existing http fetcher.

Alex

#2 lore raw
In reply to Matthias Schoepfer
Quoted 8 lines · Matthias Schoepfer via lists.openembedded.org

Hi!

I am stepping totally out of my comfort zone and had the idea to write a custom fetcher (shall pull docker images O.o). From reading through some of the code of fetch2, I would guess there is no way to register a new fetcher from outside of the bitbake code itself. Please correct me, if I am wrong.

Also note that this concept has been discussed for many years now, and if you did manage to get something like this working, it would be something you'd need to maintain externally as it would be very unlikely to be merged to bitbake or even to meta-virtuazliation (if you have cross container install questions, meta-virt iis the right place to discuss it, as there is feature development happening there).

Bruce

Quoted 17 lines

Thanks and Regards,

Matthias

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#16723):
https://lists.openembedded.org/g/bitbake-devel/message/16723
Mute This Topic: https://lists.openembedded.org/mt/109190035/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II