Created
January 28, 2019 19:52
-
-
Save Tset-Noitamotua/53123843a377343a3e9eaaa78df06520 to your computer and use it in GitHub Desktop.
add chromedriver to docker container #robotframework #chrome #docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add this to your Dockerfile | |
# by dm08 from Robot Framework Slack channel | |
apt-get -y install google-chrome-stable && \ | |
wget -q http://chromedriver.storage.googleapis.com/LATEST_RELEASE && \ | |
echo $(cat LATEST_RELEASE) && \ | |
chromedriver_version=$(cat LATEST_RELEASE) && \ | |
wget -N http://chromedriver.storage.googleapis.com/$chromedriver_version/chromedriver_linux64.zip && \ | |
unzip chromedriver_linux64.zip && \ | |
chmod +x chromedriver && \ | |
mv -f chromedriver /usr/local/bin/chromedriver && \ | |
ln -s /usr/local/bin/chromedriver /usr/bin/chromedriver && \ | |
chromedriver --version && google-chrome --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment