-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7b9940
commit 6805b19
Showing
5 changed files
with
88 additions
and
0 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
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,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"] |
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-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/ |
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-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 . |
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