-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(base): generate new image with version 16.17.0 (#737)
Co-authored-by: Adam Murray <[email protected]>
- Loading branch information
1 parent
d0be07b
commit 4cc7a44
Showing
6 changed files
with
109 additions
and
15 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,61 @@ | ||
# 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:16.17.0 . | ||
# | ||
FROM node:16.17.0-bullseye-slim | ||
|
||
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 \ | ||
procps \ | ||
xauth \ | ||
xvfb \ | ||
# install text editors | ||
vim-tiny \ | ||
nano \ | ||
# install emoji font | ||
fonts-noto-color-emoji \ | ||
# 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/* \ | ||
&& apt-get clean | ||
|
||
# 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 | ||
|
||
RUN npm --version \ | ||
&& npm install -g yarn@latest --force \ | ||
&& yarn --version \ | ||
&& node -p process.versions \ | ||
&& node -p 'module.paths' \ | ||
&& 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:16.17.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:16.17.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:16.17.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
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