diff --git a/base/10.0.0/Dockerfile b/base/10.0.0/Dockerfile new file mode 100644 index 0000000000..00881a2711 --- /dev/null +++ b/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" diff --git a/base/10.0.0/README.md b/base/10.0.0/README.md new file mode 100644 index 0000000000..b725c59321 --- /dev/null +++ b/base/10.0.0/README.md @@ -0,0 +1,26 @@ + +# 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 +``` diff --git a/base/10.0.0/build.sh b/base/10.0.0/build.sh new file mode 100755 index 0000000000..06675289ba --- /dev/null +++ b/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 . diff --git a/base/README.md b/base/README.md index d9cc75bd39..2bea6fc1d7 100644 --- a/base/README.md +++ b/base/README.md @@ -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 diff --git a/circle.yml b/circle.yml index 1c0db44a67..e855047d1a 100644 --- a/circle.yml +++ b/circle.yml @@ -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"