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 base image with Node 14.5.0 (cypress-io#351)
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# WARNING: this file was autogenerated by generate-base-image.js | ||
# contains all dependencies for running Cypress.io Test Runner | ||
# https://on.cypress.io/docker and https://on.cypress.io/ci | ||
# | ||
# build it with command | ||
# docker build -t cypress/base:14.5.0 . | ||
# | ||
FROM node:14.5.0-buster | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y \ | ||
libgtk2.0-0 \ | ||
libgtk-3-0 \ | ||
libnotify-dev \ | ||
libgconf-2-4 \ | ||
libgbm-dev \ | ||
libnss3 \ | ||
libxss1 \ | ||
libasound2 \ | ||
libxtst6 \ | ||
xauth \ | ||
xvfb \ | ||
# install Chinese fonts | ||
# this list was copied from https://github.com/jim3ma/docker-leanote | ||
fonts-arphic-bkai00mp \ | ||
fonts-arphic-bsmi00lp \ | ||
fonts-arphic-gbsn00lp \ | ||
fonts-arphic-gkai00mp \ | ||
fonts-arphic-ukai \ | ||
fonts-arphic-uming \ | ||
ttf-wqy-zenhei \ | ||
ttf-wqy-microhei \ | ||
xfonts-wqy \ | ||
# clean up | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN npm install -g npm@latest | ||
RUN npm --version | ||
|
||
RUN npm install -g yarn@latest --force | ||
RUN yarn --version | ||
|
||
# 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 | ||
|
||
# Node libraries | ||
RUN node -p process.versions | ||
|
||
# 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" \ | ||
"user: $(whoami) \n" |
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,18 @@ | ||
<!-- WARNING: this file was autogenerated by generate-base-image.js --> | ||
# cypress/base:14.5.0 | ||
|
||
A Docker image with all dependencies pre-installed. | ||
Just add your NPM packages (including Cypress) and run the tests. | ||
See [Cypress Docker docs](https://on.cypress.io/docker) and | ||
[Cypress CI guide](https://on.cypress.io/ci). | ||
|
||
## Example | ||
|
||
Sample Dockerfile | ||
|
||
``` | ||
FROM cypress/base:14.5.0 | ||
RUN npm install --save-dev cypress | ||
RUN $(npm bin)/cypress verify | ||
RUN $(npm bin)/cypress run | ||
``` |
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,8 @@ | ||
# WARNING: this file was autogenerated by generate-base-image.js | ||
set e+x | ||
|
||
# build image with Cypress dependencies | ||
LOCAL_NAME=cypress/base:14.5.0 | ||
|
||
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
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