Skip to content

Commit

Permalink
add cypress/base:10.0.0 image (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jun 23, 2020
1 parent 6805b19 commit 6889983
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 1 deletion.
52 changes: 52 additions & 0 deletions base/10.0.0/Dockerfile
@@ -0,0 +1,52 @@
FROM node:10.0.0

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"
26 changes: 26 additions & 0 deletions base/10.0.0/README.md
@@ -0,0 +1,26 @@
<!-- WARNING: this file was autogenerated by generate-base-image.js -->
# cypress/base:10.0.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).

```
node version: v10.0.0
npm version: 6.14.5
yarn version: 1.22.4
debian version: 8.10
user: root
```

## Example

Sample Dockerfile

```
FROM cypress/base:10.0.0
RUN npm install --save-dev cypress
RUN $(npm bin)/cypress verify
RUN $(npm bin)/cypress run
```
8 changes: 8 additions & 0 deletions base/10.0.0/build.sh
@@ -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:10.0.0

echo "Building $LOCAL_NAME"
docker build -t $LOCAL_NAME .
3 changes: 2 additions & 1 deletion base/README.md
Expand Up @@ -18,7 +18,8 @@ cypress/base:8.9.3 | 8.9.3 | Debian | [/8.9.3](8.9.3) | 5.5.1 | 1.12.3
cypress/base:8.9.3-npm-6.10.1 | 8.9.3 | Debian | [/8.9.3](8.9.3-npm-6.10.1) | 6.10.1 | 1.17.3
cypress/base:8.15.1 | 8.15.1 | Debian | [/8.15.1](8.15.1) | 6.9.0 | 1.15.2
cypress/base:8.16.0 | 8.16.0 | Debian | [/8.16.0](8.16.0) | 6.9.0 | 1.16.0 | [1](#note1)
cypress/base:10 | 10 | Debian | [/10](10) | 6.4.1 | 1.9.4
cypress/base:10.0.0 | 10.0.0 | Debian 8.10 | [/10.0.0](10.0.0) | 6.14.5 | 1.22.4 | [1](#note1)
cypress/base:10 | 10.13 | Debian | [/10](10) | 6.4.1 | 1.9.4
cypress/base:10.2.1 | 10.2.1 | Debian | [/10.2.1](10.2.1) | 6.9.0 | 1.16.0 | [1](#note1)
cypress/base:10.11.0 | 10.11.0 | Debian | [/10.11.0](10.11.0) | 6.9.0 | 1.16.0 | [1](#note1)
cypress/base:10.15.3 | 10.15.3 | Debian | [/10.15.3](10.15.3) | 6.9.0 | 1.15.2
Expand Down
3 changes: 3 additions & 0 deletions circle.yml
Expand Up @@ -312,6 +312,9 @@ workflows:
- build-base-image:
name: "base 10"
dockerTag: "10"
- build-base-image:
name: "base 10.0.0"
dockerTag: "10.0.0"
- build-base-image:
name: "base 10.11.0"
dockerTag: "10.11.0"
Expand Down

0 comments on commit 6889983

Please sign in to comment.