Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cypress/factory for cypress 13.7.1 instructions for running with docker doesnt work #1030

Closed
irodriguezeco opened this issue Apr 3, 2024 · 2 comments

Comments

@irodriguezeco
Copy link

irodriguezeco commented Apr 3, 2024

I have followed the instructions from docker hub https://hub.docker.com/r/cypress/factory

This is my DockerFile located in the root path of my project

# Args are defined in the Dockerfile before the FROM command.
# Using these args will cause an image to be created with node (default version is 16.18.1), chrome, firefox and edge.


ARG NODE='20.11.1'
ARG CHROME_VERSION='123.0.6312.58-1'
ARG YARN='3.2.2'
ARG CYPRESS='13.7.1'


FROM cypress/factory 

COPY . /opt/app
WORKDIR /opt/app

RUN npm install --save-dev cypress

========================================================
And i have a make file to use with the following commands:

cypress1:
	docker build . -t test
	docker run -it test npm run test -b chrome

So when i type in the terminal in visual studio code make cypress1 i get the following error:

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/9jtqoygp6l3rizzsmxqfd41wt

What's Next?
  View a summary of image vulnerabilities and recommendations → docker scout quickview
docker run -it test npm run test -b chrome
npm ERR! Missing script: "test"
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

=========================================================

I'm trying to use cypress/factory because i would like to use chrome for version 13.7.1 with Node=20.11 or 20.5 and prefferably yarn=3.2.2, but i found out there are no images available that have this configuration.
But if so, and i might be missing something, please let me know!

Thank you in advance

@MikeMcC399
Copy link
Collaborator

MikeMcC399 commented May 24, 2024

@irodriguezeco

Yarn Modern is not supported by cypress/factory.

It's the same situation for Docker images provided by https://github.com/nodejs/docker-node

This would be an enhancement request.

@MikeMcC399
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants