cloudfoundry / cflinuxfs4

Apache License 2.0
1 stars 6 forks source link

Add snap to installed packages #18

Closed mohadipe closed 9 months ago

mohadipe commented 10 months ago

I am interested in including snap in cflinuxfs4 because I want to install the chromium-browser package in my app. With cflinuxfs3 I currently do this with the apt_buildpack. But for Ubuntu 22 there is no PPA that I can use. If I use the apt_buildpack as before the chromium-browser is not installed correctly. If I want to run it I get an error message that snap is required.

Is there anything against including snap as a package?

sophiewigmore commented 9 months ago

What's the error message you encounter when you try to use the apt buildpack? Is there something preventing you from installing snap with the apt buildpack as well?

mohadipe commented 9 months ago

Hi,

at the time of installation we do not receive an error message. When we want to start the application we get the following message.

./chromium-browser Command './chromium-browser' requires the chromium snap to be installed. Please install it with: snap install chromium

sophiewigmore commented 9 months ago

Ah I see. In this case I don't think it makes sense to install snap onto the stack because even if it's installed, you'll still need a way to run snap install chromium, and as far as I know there's no way for you to do that. In general I think I'm against adding it to the stack because it leads to a confusing use case for users who then don't have a clear way to leverage snap. Does that make sense?

sophiewigmore commented 9 months ago

You could maybe consider making a custom stack - or looking at a different PPA (https://launchpad.net/~phd/+archive/ubuntu/chromium-browser mentions https://freeshell.de/phd/chromium)

mohadipe commented 9 months ago

Thanks for your tip and your answer.

I think the ticket can be closed.

Merry Christmas :christmas_tree:

sophiewigmore commented 9 months ago

You too! ⭐