Skip to content

Instantly share code, notes, and snippets.

@Tset-Noitamotua
Created January 28, 2019 19:52
Show Gist options
  • Save Tset-Noitamotua/53123843a377343a3e9eaaa78df06520 to your computer and use it in GitHub Desktop.
Save Tset-Noitamotua/53123843a377343a3e9eaaa78df06520 to your computer and use it in GitHub Desktop.
add chromedriver to docker container #robotframework #chrome #docker
# 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