*** Kyle is now known as Guest1523 | 19:23 | |
Guest1523 | So I'm new to the whole world diskimage creation (with a background in using containers and deploying with k8s), and I've succeeded (in that not very difficult task) of using diskimage_builder to give me a debian image. Great. What I'm looking to do is add a locally built executable (it's a single file) to the image, and then configure systemd to run it (I believe meaning having a file added to /etc/systemd/system/). Sho | 19:42 |
---|---|---|
Guest1523 | * It wasn't obvious to me if I needed custom elements to do it. | 19:43 |
clarkb | your first message cut off after "/etc/systemd/system/). Sho" due to irc message length limits | 19:45 |
clarkb | But yes you should write an element to do that | 19:45 |
clarkb | The element can copy or build the executable then drop a systemd unit file into place | 19:46 |
clarkb | the simple-init element may be a good example of that (though I think the unit files may come out of the glean repo) | 19:47 |
clarkb | ya the glean-install command installs the unit files after glean gets installed into the image | 19:48 |
clarkb | as an alternative you may be able to use the containerfile element to build your image then have BUILD steps in there to add your unit and executable. I don't know of any examples of that though | 19:49 |
Guest1523 | sounds good, I appreciate the advice! | 19:49 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!