You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I came across your project while implementing deployment with dokku. I'm not clear on how dokku-apt should be used to install Chrome in my Ubuntu image, so I'd like to clarify. Any pointer would be appreciated.
The Rails app uses webdrivers and watir (a gem built on top of Selenium) to open a web page and read its content, so a browser executable needs to be installed, in this case it is expected to be Chrome.
This is what I have tried: added these files in the root folder of my Rails app (i.e. same level as app, config, etc.): apt-keys, apt-repositories, apt-packages. And here are the contents of each of the 3 files:
apt-repositories: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
apt-packages: google-chrome-stable
But it threw the following error when I deploy (through git push dokku master):
Package google-chrome-stable is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
Then I tried renaming the apt-repositories file to apt-sources-list, with the same content, then deployed again. This time it threw this error:
Could you advise how dokku-apt should be used to install Chrome?
Also, as a suggestion, I think it'd be more illustrative if the README.md showed a working example with all the files needed (e.g. install Chrome or another package) instead of / in addition to the current code snippets for the apt-* files that are independent of each other. Basically, an example that shows how the apt-* files would work together in an actual scenario rather than how each individual file should be written.
Appreciate your time. Please advise.
The text was updated successfully, but these errors were encountered:
Hello, I came across your project while implementing deployment with dokku. I'm not clear on how dokku-apt should be used to install Chrome in my Ubuntu image, so I'd like to clarify. Any pointer would be appreciated.
Environment info:
Ubuntu 20.04.1 LTS
Dokku 0.21.4
Rails 6
The Rails app uses
webdrivers
andwatir
(a gem built on top of Selenium) to open a web page and read its content, so a browser executable needs to be installed, in this case it is expected to be Chrome.This is what I have tried: added these files in the root folder of my Rails app (i.e. same level as app, config, etc.):
apt-keys
,apt-repositories
,apt-packages
. And here are the contents of each of the 3 files:https://dl-ssl.google.com/linux/linux_signing_key.pub
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
google-chrome-stable
But it threw the following error when I deploy (through
git push dokku master
):Then I tried renaming the apt-repositories file to
apt-sources-list
, with the same content, then deployed again. This time it threw this error:Could you advise how dokku-apt should be used to install Chrome?
Also, as a suggestion, I think it'd be more illustrative if the README.md showed a working example with all the files needed (e.g. install Chrome or another package) instead of / in addition to the current code snippets for the apt-* files that are independent of each other. Basically, an example that shows how the apt-* files would work together in an actual scenario rather than how each individual file should be written.
Appreciate your time. Please advise.
The text was updated successfully, but these errors were encountered: