ubuntu - DigitalOcean, Docker, Dokku: Installing Firefox inside a container -


i have application needs use headed browser periodically.

i want host using dokku.

how can install container?

when run:

dokku run my_app apt-get install firefox 

i get: e: failed fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd-daemon0_204-5ubuntu20.9_amd64.deb 404 not found [ip: 91.189.91.15 80] . . . e: failed fetch http://archive.ubuntu.com/ubuntu/pool/main/u/ubufox/xul-ext-ubufox_2.9-0ubuntu0.14.04.1_all.deb 404 not found [ip: 91.189.91.15 80]

after running:

dokku run my_app firefox 

returns: fata[0000] error response daemon: cannot start container ... exec: "firefox": executable file not found in $path

i aware phatomjs better solution third party gem using dependant on headed firefox browser.

from error message getting when installing firefox, seems apt cache inside docker container out-of-date. running apt-get update first should resolve problem.

though run firefox headless, you'll need step. you'll need prepend command xvfb-run part of xvfb package. allow run commands in virtual x server environment.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -