How to install google-chrome-stable in bootable container Silverblue?

I am trying to use bootc and dnf5 to add my own customizations on top of Fedora Silverblue. It’s really impressive technology and works for just about everything I have tried except for installing Google Chrome. This is a minimal example that gives the error:

FROM quay.io/fedora/fedora-silverblue:41

RUN dnf config-manager setopt google-chrome.enabled=1 && dnf -y install google-chrome-stable
RUN bootc container lint

The dnf install line fails with failed to open dir opt of /opt/google/: cpio: mkdir failed - File exists.

I’ve read the bootc documentation and I came up with the solution of mkdiring /var/opt before installing. This works in that the container is built but I don’t know if this is a good idea or even the right way to solve the issue?

Currently, at this stage, it is still recommended to use unofficial images, see What’s new for Fedora Atomic Desktops in Fedora 41 - Siosm’s blog.

I don’t use Google Chrome, so I haven’t tested it, but you can take a look at GitHub - travier/fedora-sysexts: Example sysexts for Fedora image based systems, namely fedora-sysexts/google-chrome/Containerfile at main · travier/fedora-sysexts · GitHub.

3 Likes

Thanks for the pointer to the sysexts repo.

1 Like