Skip to content

Commit

Permalink
add Node.js 18.6 (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Sep 1, 2022
1 parent 4cc7a44 commit 780ee0e
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 10 deletions.
61 changes: 61 additions & 0 deletions base/18.6.0/Dockerfile
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:18.6.0 .
#
FROM node:18.6.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"
18 changes: 18 additions & 0 deletions base/18.6.0/README.md
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:18.6.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:18.6.0
RUN npm install --save-dev cypress
RUN $(npm bin)/cypress verify
RUN $(npm bin)/cypress run
```
8 changes: 8 additions & 0 deletions base/18.6.0/build.sh
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:18.6.0

echo "Building $LOCAL_NAME"
docker build -t $LOCAL_NAME .
1 change: 1 addition & 0 deletions base/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
| cypress/base:16.14.2-slim | 16.14.2 | Debian | [/16.14.2](16.14.2) | `🚫` | `🚫` | `🚫` |
| cypress/base:14.17.6-slim | 14.17.6 | Debian | [/14.17.6](14.17.6) | `🚫` | `🚫` | `🚫` |
| cypress/base:16.17.0 | 16.17.0 | Debian | [/16.17.0](16.17.0) | `🚫` | `🚫` | `🚫` |
| cypress/base:18.6.0 | 18.6.0 | Debian | [/18.6.0](18.6.0) | `🚫` | `🚫` | `🚫` |

## Notes

Expand Down
4 changes: 3 additions & 1 deletion base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ Image `cypress/base:12` is tagged [`latest`](https://hub.docker.com/r/cypress/ba
| cypress/base:14.17.6 | 14.17.6 | Debian | [/14.17.6](14.17.6) | `🚫` | `🚫` | `🚫` |
| cypress/base:16.14.2 | 16.14.2 | Debian | [/16.14.2](16.14.2) | `🚫` | `🚫` | `🚫` |
| cypress/base:16.14.2-slim | 16.14.2 | Debian | [/16.14.2](16.14.2) | `🚫` | `🚫` | `🚫` |
| cypress/base:14.17.6-slim | 14.17.6 | Debian | [/14.17| cypress/base:16.17.0 | 16.17.0 | Debian | [/16.17.0](16.17.0) | `🚫` | `🚫` | `🚫` | .6](14.17.6) | `🚫` | `🚫` | `🚫` |
| cypress/base:14.17.6-slim | 14.17.6 | Debian | [/14.17.6](14.17.6) | `🚫` | `🚫` | `🚫` |
| cypress/base:16.17.0 | 16.17.0 | Debian | [/16.17.0](16.17.0) | `🚫` | `🚫` | `🚫` |
| cypress/base:18.6.0 | 18.6.0 | Debian | [/18.6.0](18.6.0) | `🚫` | `🚫` | `🚫` |

## Notes

Expand Down
18 changes: 9 additions & 9 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,21 +431,21 @@ workflows:
build-base-images:
jobs:
- build-base-image:
name: "build+test base 16.17.0 arm64"
dockerTag: "16.17.0"
name: "build+test base 18.6.0 arm64"
dockerTag: "18.6.0"
resourceClass: arm.large
platformArg: linux/arm64
- build-base-image:
name: "build+test base 16.17.0 x64"
dockerTag: "16.17.0"
name: "build+test base 18.6.0 x64"
dockerTag: "18.6.0"
resourceClass: large
platformArg: linux/amd64
- push-images:
name: "push base 16.17.0 images"
name: "push base 18.6.0 images"
dockerName: 'cypress/base'
dockerTag: '16.17.0'
workingDirectory: '~/project/base/16.17.0'
dockerTag: '18.6.0'
workingDirectory: '~/project/base/18.6.0'
context: test-runner:docker-push
requires:
- "build+test base 16.17.0 arm64"
- "build+test base 16.17.0 x64"
- "build+test base 18.6.0 arm64"
- "build+test base 18.6.0 x64"

0 comments on commit 780ee0e

Please sign in to comment.