Skip to content

Commit

Permalink
included 4.9.0 (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbreiding committed Jun 23, 2020
1 parent f7b9940 commit 6805b19
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 0 deletions.
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -680,3 +680,6 @@ workflows:
- build-included-image:
name: "included 4.8.0"
dockerTag: "4.8.0"
- build-included-image:
name: "included 4.9.0"
dockerTag: "4.9.0"
58 changes: 58 additions & 0 deletions included/4.9.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# WARNING: this file was autogenerated by generate-included-image.js
# using
# npm run add:included -- 4.9.0 cypress/browsers:node12.16.2-chrome81-ff75
#
# build this image with command
# docker build -t cypress/included:4.9.0 .
#
FROM cypress/browsers:node12.16.2-chrome81-ff75

# avoid too many progress messages
# https://github.com/cypress-io/cypress/issues/1243
ENV CI=1

# disable shared memory X11 affecting Cypress v4 and Chrome
# https://github.com/cypress-io/cypress-docker-images/issues/270
ENV QT_X11_NO_MITSHM=1
ENV _X11_NO_MITSHM=1
ENV _MITSHM=0

# should be root user
RUN echo "whoami: $(whoami)"
RUN npm config -g set user $(whoami)

# command "id" should print:
# uid=0(root) gid=0(root) groups=0(root)
# which means the current user is root
RUN id

# point Cypress at the /root/cache no matter what user account is used
# see https://on.cypress.io/caching
ENV CYPRESS_CACHE_FOLDER=/root/.cache/Cypress
RUN npm install -g "cypress@4.9.0"
RUN cypress verify

# Cypress cache and installed version
# should be in the root user's home folder
RUN cypress cache path
RUN cypress cache list
RUN cypress info

# give every user read access to the "/root" folder where the binary is cached
# we really only need to worry about the top folder, fortunately
RUN ls -la /root
RUN chmod 755 /root

# always grab the latest NPM and Yarn
# otherwise the base image might have old versions
RUN npm i -g yarn@latest npm@latest

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" \
"chrome: $(google-chrome --version || true) \n" \
"firefox: $(firefox --version || true) \n"

ENTRYPOINT ["cypress", "run"]
18 changes: 18 additions & 0 deletions included/4.9.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!--
WARNING: this file was autogenerated by generate-included-image.js using
npm run add:included -- 4.9.0 cypress/browsers:node12.16.2-chrome81-ff75
-->

# cypress/included:4.9.0

Read [Run Cypress with a single Docker command][blog post url]

## Run tests

```shell
$ docker run -it -v $PWD:/e2e -w /e2e cypress/included:4.9.0
# runs Cypress tests from the current folder
```

[blog post url]: https://www.cypress.io/blog/2019/05/02/run-cypress-with-a-single-docker-command/
8 changes: 8 additions & 0 deletions included/4.9.0/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# WARNING: this file was autogenerated by generate-included-image.js
# using
# npm run add:included -- 4.9.0 cypress/browsers:node12.16.2-chrome81-ff75
set e+x

LOCAL_NAME=cypress/included:4.9.0
echo "Building $LOCAL_NAME"
docker build -t $LOCAL_NAME .
1 change: 1 addition & 0 deletions included/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Name + Tag | Base image
[cypress/included:4.6.0](4.6.0) | `cypress/browsers:node12.16.2-chrome81-ff75`
[cypress/included:4.7.0](4.7.0) | `cypress/browsers:node12.16.2-chrome81-ff75`
[cypress/included:4.8.0](4.8.0) | `cypress/browsers:node12.16.2-chrome81-ff75`
[cypress/included:4.9.0](4.9.0) | `cypress/browsers:node12.16.2-chrome81-ff75`

This image should be enough to run Cypress tests headlessly or in the interactive mode with a single Docker command like this:

Expand Down

0 comments on commit 6805b19

Please sign in to comment.