Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide latest Chrome and Firefox on the build image #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,27 @@ RUN echo "--- :ruby: Updating RubyGems and Bundler" \
postgresql-client default-mysql-client sqlite3 \
git nodejs=18.19.0-1nodesource1 yarn lsof \
ffmpeg mupdf mupdf-tools poppler-utils \
# Install Chrome
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
apt-get update && apt-get install -y google-chrome-stable \
# Install ChromeDriver
&& apt-get update && apt-get install -y unzip graphviz && \
CHROME_VERSION=$(google-chrome-stable --version | cut -d " " -f3) && \
echo "Chrome_Version: ${CHROME_VERSION}" && \
curl -sS -o /root/chromedriver_linux64.zip https://storage.googleapis.com/chrome-for-testing-public/$CHROME_VERSION/linux64/chromedriver-linux64.zip &&\
unzip ~/chromedriver_linux64.zip -d ~/ && \
rm ~/chromedriver_linux64.zip && \
chown root:root ~/chromedriver-linux64/chromedriver && \
chmod 755 ~/chromedriver-linux64/chromedriver && \
mv ~/chromedriver-linux64/chromedriver /usr/bin/chromedriver \
# Install Firefox and Geckodriver
&& apt-get update && apt-get install -y --no-install-recommends \
firefox-esr xvfb \
&& GECKODRIVER_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//') \
&& wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz \
&& tar -xvzf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C /usr/local/bin/ \
&& rm geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz \
# clean up
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* \
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ services:
# Sauce Labs username and access key. Obfuscated, purposefully not encrypted.
ENCODED: "U0FVQ0VfQUNDRVNTX0tFWT1hMDM1MzQzZi1lOTIyLTQwYjMtYWEzYy0wNmIzZWE2MzVjNDggU0FVQ0VfVVNFUk5BTUU9cnVieW9ucmFpbHM="

# Overrides the on-image Browsers for integration test and uses Saucelabs
CI_TEST_SAUCELABS:

BEANSTALK_URL: "beanstalk://beanstalkd"
MEMCACHE_SERVERS: "memcached:11211"
MYSQL_HOST: mysql
Expand Down