Skip to content

Commit

Permalink
Adding geckodriver support to dev container. (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinswiber authored Sep 16, 2023
1 parent 80b3f96 commit 3b6899f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,13 @@ RUN if [ `uname -m` = "x86_64" ]; then \
mv ~/chromedriver-linux64 /opt/chromedriver && \
ln -s /opt/chromedriver/chromedriver /usr/local/bin/chromedriver && \
chmod +x /opt/chromedriver && \
rm ~/chromedriver-linux64.zip; fi
rm ~/chromedriver-linux64.zip; fi

RUN apt-get update && apt-get install -y firefox-esr && \
GECKODRIVER_NAME=$(if [ `uname -m` = "aarch64" ]; then echo "geckodriver-v0.33.0-linux-aarch64" ; else echo "geckodriver-v0.33.0-linux64"; fi) && \
GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/v0.33.0/$GECKODRIVER_NAME.tar.gz" && \
wget -N "$GECKODRIVER_URL" -P ~/ && \
tar -zxf ~/$GECKODRIVER_NAME.tar.gz -C ~/ && \
mv ~/geckodriver /usr/local/bin/geckodriver && \
chmod +x /usr/local/bin/geckodriver && \
rm ~/$GECKODRIVER_NAME.tar.gz

0 comments on commit 3b6899f

Please sign in to comment.