cypress-docker-images icon indicating copy to clipboard operation
cypress-docker-images copied to clipboard

BC versions shouldn't be included within the published images

Open yassine-ah opened this issue 3 years ago • 1 comments

Now that Cypress 10 was released, our pipeline fail because of the existing of cypress.json file.

I know that we can workaround this problem by reinstalling the previous version, but wouldn't be better to have a Cypress base image per major version ?

Thanks

yassine-ah avatar Jun 01 '22 17:06 yassine-ah

@yassine-ah could you explain this a little more? I'm not sure I understand what problem you're running into.

admah avatar Jun 01 '22 17:06 admah

Hey @yassine-ah , with our newly released cypress/factory image, you can specify which version of cypress you want in the included image

Using cypress/factory, you can add args for the versions you want and consume the factory directly.

cypress/included equivalent using factory

ARG NODE_VERSION='16.19.0'
ARG YARN_VERSION='1.22.19'
ARG CHROME_VERSION='109.0.5414.74-1'
ARG EDGE_VERSION='109.0.1518.52-1'
ARG FIREFOX_VERSION='109.0'
ARG CYPRESS_VERSION='9.7.0'

FROM cypress/factory:latest

<whatever steps you want>

Please note that i did not ensure cypress 9 compatibility with the other versions, node chrome etc. You may have to tweak some versions.

Check out our cypress factory docs for more info: https://github.com/cypress-io/cypress-docker-images/tree/master/factory

mjhenkes avatar Jan 26 '23 18:01 mjhenkes