When installing geckodriver on ubuntu using apt install firefox-geckodriver
I get promt saying :
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.
- Africa 3. Antarctica 5. Arctic 7. Atlantic 9. Indian 11. SystemV 13. Etc
- America 4. Australia 6. Asia 8. Europe 10. Pacific 12. US
Geographic area:
Since this needs manual input, I am unable to run this in docker-compose. How to remove this prompt or supply default input options in command
CodePudding user response:
DEBIAN_FRONTEND
env variable should help, try running with noninteractive
option
DEBIAN_FRONTEND=noninteractive apt install firefox-geckodriver
CodePudding user response:
Edit: you can try:
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=utc/UTC
RUN apt-get install -y [program]
- TZ being your preferred timezone
You can wget
the latest release tarball from github, extract it and than move it to
your PATH
or add the path to geckodriver to PATH
wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
tar xvfz geckodriver*
chmod x geckodriver
sudo mv geckodriver /usr/local/bin
Assuming /usr/local/bin is in your PATH