UB
Universal Blue•8mo ago
j0rge

`ostree container commit` thread

ostree container commit thread
14 Replies
Noel
Noel•8mo ago
Bazzite saved about 1GB in space for updates.
j0rge
j0rgeOP•8mo ago
I'm curious for packages.json, is it more efficient to do them all as one rpm-install or individually with an ostree container commit?
M2
M2•8mo ago
We are doing that now in main/hwe/bluefin
j0rge
j0rgeOP•8mo ago
dang did we accidentally improve the entire project?
M2
M2•8mo ago
Each of them have a singular RUN command with ostree container commit at the end
Kyle Gospo
Kyle Gospo•8mo ago
are you telling me only bazzite has 14 RUN commands?
M2
M2•8mo ago
Bluefin used to But we are down to a singular one
Noel
Noel•8mo ago
That would never happen lol Sounds like we just need to shell out Bazzite. Could do the steam split as part of that too. Shorten the build times for Bazzite considerably.
bsherman
bsherman•8mo ago
my solution to this is don't have 100 RUN statements, then you don't need to run ostree container commit a bunch see the Containerfiles for main/hwe
j0rge
j0rgeOP•8mo ago
yeah, not sure if we need the manual cleaning out part of the directories but that also shouldn't matter. When we started the project the docs weren't so clear about where we should be putting the ostree container commit. but I'm glad we found some savings for bazzite, that's 30GB a month per device. 😄
Luke Skywunker
Luke Skywunker•8mo ago
From my experience, you can forgoe cleaning out /tmp as ostree container commit handles that for you. I've had some problems with things being in /var. You can also use mounts on the RUN instruction though the current Ubuntu runners have old buildah which doesn't have that feature ostree container commit will essentially ignore mounted dirs Just tried removing the tmpfs mount I had for /var, seems as though the builds are working properly now with the commit. I was probably doing something weird back then
EyeCantCU
EyeCantCU•8mo ago
This is amazing!
Want results from more Discord servers?
Add your server