forked from codefresh-io/cypress-docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Node 12.18.3 and Chrome 87 and FF 82 (cypress-io#415)
* add Node 12.18.3 and Chrome 87 and FF 82 * fix link in the readme
- Loading branch information
Showing
5 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
FROM cypress/base:12.18.3 | ||
|
||
USER root | ||
|
||
RUN node --version | ||
RUN echo "force new chrome here!" | ||
|
||
# Chrome dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y fonts-liberation libappindicator3-1 xdg-utils | ||
|
||
# install Chrome browser | ||
# check https://chromium.cypress.io/ | ||
ENV CHROME_VERSION 87.0.4280.66 | ||
RUN wget -O /usr/src/google-chrome-stable_current_amd64.deb "http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}-1_amd64.deb" && \ | ||
dpkg -i /usr/src/google-chrome-stable_current_amd64.deb ; \ | ||
apt-get install -f -y && \ | ||
rm -f /usr/src/google-chrome-stable_current_amd64.deb | ||
RUN google-chrome --version | ||
|
||
# "fake" dbus address to prevent errors | ||
# https://github.com/SeleniumHQ/docker-selenium/issues/87 | ||
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null | ||
|
||
# Add zip utility - it comes in very handy | ||
RUN apt-get update && apt-get install -y zip | ||
|
||
# add codecs needed for video playback in firefox | ||
# https://github.com/cypress-io/cypress-docker-images/issues/150 | ||
RUN apt-get install mplayer -y | ||
|
||
# install Firefox browser | ||
ARG FIREFOX_VERSION=82.0 | ||
RUN wget --no-verbose -O /tmp/firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 \ | ||
&& tar -C /opt -xjf /tmp/firefox.tar.bz2 \ | ||
&& rm /tmp/firefox.tar.bz2 \ | ||
&& ln -fs /opt/firefox/firefox /usr/bin/firefox | ||
|
||
# versions of local tools | ||
RUN echo " node version: $(node -v) \n" \ | ||
"npm version: $(npm -v) \n" \ | ||
"yarn version: $(yarn -v) \n" \ | ||
"debian version: $(cat /etc/debian_version) \n" \ | ||
"Chrome version: $(google-chrome --version) \n" \ | ||
"Firefox version: $(firefox --version) \n" \ | ||
"git version: $(git --version) \n" \ | ||
"whoami: $(whoami) \n" | ||
|
||
# a few environment variables to make NPM installs easier | ||
# good colors for most applications | ||
ENV TERM xterm | ||
# avoid million NPM install messages | ||
ENV npm_config_loglevel warn | ||
# allow installing when the main user is root | ||
ENV npm_config_unsafe_perm true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# cypress/browsers:node12.18.3-chrome87-ff82 | ||
|
||
A complete image with all operating system dependencies for Cypress, Chrome | ||
87 and Firefox 82 browsers. | ||
|
||
[Dockerfile](Dockerfile) | ||
|
||
```text | ||
node version: v12.18.3 | ||
npm version: 6.14.8 | ||
yarn version: 1.22.4 | ||
debian version: 10.5 | ||
Chrome version: Google Chrome 87.0.4280.66 | ||
Firefox version: Mozilla Firefox 82.0 | ||
git version: git version 2.20.1 | ||
whoami: root | ||
``` | ||
|
||
**Note:** this image uses the `root` user. You might want to switch to non-root | ||
user like `node` when running this container for security. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set e+x | ||
|
||
LOCAL_NAME=cypress/browsers:node12.18.3-chrome87-ff82 | ||
|
||
echo "Building $LOCAL_NAME" | ||
docker build -t $LOCAL_NAME . |
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