noonedeadpunk | hey folks! I was wondering if there's some element that can be helpful to fetch an imga from URL and just unpack/convert to required format? I'm specifically thinking about fedora-coreos, but not limited to that | 07:46 |
---|---|---|
clarkb | noonedeadpunk: some of elements work that way so it is doable. I think ubuntu does this | 15:57 |
clarkb | but if that is all you need you cna just qemu-img convert it too probably | 15:57 |
noonedeadpunk | well. I can. though wanna manage all images with pretty much same tool whenever possible... even if it will do "stupid" thing for some | 16:00 |
noonedeadpunk | way easier to automate when you need to build everything periodically... | 16:00 |
clarkb | ya then I would look into making a simple element that takes an input image and doesn't really do anything to it | 16:01 |
clarkb | then the qemu-img conversions dib does will apply and you can select output format | 16:01 |
bindas | Hi everyone , i wanted to ask some help on using diskimage-builder tool. i am trying to modify ubuntu 20.04 LTS cloud image with few packages preinstall in the image. how can i do so ? | 21:15 |
bindas | any help is appreciated :) | 21:15 |
clarkb | bindas: I think you can supply a list of pacakges to install on the command line. Alternatively you can write a small element that lists the packages to install | 21:32 |
clarkb | we use a small element. I'm working on finding a link to it | 21:33 |
bindas | the main part i am not understanding is how specify which ubuntu version i want to build | 21:33 |
clarkb | https://opendev.org/openstack/project-config/src/branch/master/nodepool/elements/infra-package-needs | 21:33 |
JayF | there is a package-install element in dib directly, I think? https://docs.openstack.org/diskimage-builder/latest/elements/package-installs/README.html | 21:38 |
JayF | yeah, looks like that takes a yaml or json file in to declare packages | 21:39 |
JayF | bindas: hmm, lets try to figure that out | 21:39 |
JayF | bindas: https://docs.openstack.org/diskimage-builder/latest/elements/ubuntu/README.html says to use DIB_RELEASE | 21:39 |
* JayF sees what values go there in ubuntu land | 21:39 | |
clarkb | JayF: yes, the element I linked to above uses the package-installs element. I think you do something like export DIB_RELEASE=focal | 21:39 |
JayF | oooh nested elements, got it | 21:40 |
bindas | JayF: yeh actually found that on how to install/declare packages with -p option on cli | 21:40 |
JayF | https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ubuntu/root.d/10-cache-ubuntu-tarball#L15 yeah confirming what clark says (of course he was right) that it wants the codename | 21:41 |
bindas | one more quick question , if i build an image today and another image a week from now . will dib install the lastest packages. for example ubuntu cloud images are updated almost daily. so if i build an image today and later from week from now. it will grab the lastest packages ? | 21:43 |
bindas | not sure if i am making sense | 21:43 |
JayF | there is some caching, but generally speaking yes, unless you're hitting your cached image | 21:45 |
JayF | which you should be able to tell from the distinct lack of "downloading a giant image" at the top of the build :D | 21:45 |
bindas | oh ok awesome , thank you so much JayF and clarkb | 21:46 |
JayF | good luck, we're here if there's any trouble :) | 21:46 |
bindas | :) | 21:47 |
JayF | you building these for openstack or for something else, just curious? | 21:47 |
bindas | openstack | 21:47 |
JayF | nice; good luck :) I'll be over in -ironic, too, if you need bare metal provisioning :D | 21:47 |
JayF | good luck | 21:47 |
bindas | sure sounds good , thanks man | 21:47 |
clarkb | our CI system rebuilds iamges regularly to keep up to date with packages so ya that should definitely work | 21:47 |
bindas | yeh i am trying to build images on weekly basis | 21:48 |
bindas | i tried bard , chatgpt and bing .. none of them could give me right answers yet :D | 21:49 |
JayF | We are a better AI. Their intellegence is artificial, ours is actual ;) | 21:49 |
bindas | hahahaha XD | 21:50 |
JayF | (j/k, no magic here, I just read docs and know where to find them quickly) | 21:50 |
bindas | :) | 21:50 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!