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

is there is a way to install cypress without installing electron? #4043

Closed
eugene-matvejev opened this issue Apr 28, 2019 · 5 comments
Closed

Comments

@eugene-matvejev
Copy link

eugene-matvejev commented Apr 28, 2019

Hello

thanks for awesome tool!

I got a question if there is a chance to install cypress without electron?

it would be very useful for docker

i heard that cypress will support alpine in 4.0 so it could be an improvement 'out-of-the-box'

I got POC:
https://github.com/eugene-matvejev/battleship-game-gui-react-js/blob/master/cypress.Dockerfile

you can try it out im my repository by cloning it, and using make cypress

λ docker images -a
REPOSITORY          TAG                 IMAGE ID            CREATED              SIZE
<none>              <none>              80ab0a3108e4        About a minute ago   1.52GB
cypress             latest              605ce647f929        About a minute ago   1.52GB
<none>              <none>              7e0591aa4755        About a minute ago   1.52GB
<none>              <none>              56b5e640ccb9        2 minutes ago        1.11GB
<none>              <none>              a95ef8db5517        2 minutes ago        1.11GB
<none>              <none>              2912310a40a2        3 minutes ago        53.3MB
<none>              <none>              06a74489390b        3 minutes ago        54.1MB
cypress-cwa         latest              e75432b43b37        3 minutes ago        54.1MB
<none>              <none>              de4c53efa96c        3 minutes ago        53.3MB
<none>              <none>              e85f749ac593        3 minutes ago        318MB
<none>              <none>              8d0e5d94692e        3 minutes ago        316MB
<none>              <none>              729e98a3304f        3 minutes ago        316MB
<none>              <none>              b39c794e84bf        3 minutes ago        316MB
<none>              <none>              1ccb80d0b87b        4 minutes ago        316MB
<none>              <none>              7b4737279f1d        4 minutes ago        47.6MB
<none>              <none>              fb2ac674474e        4 minutes ago        46.8MB
<none>              <none>              15b2d703b99f        4 minutes ago        46.8MB
alpine              latest              cdf98d1859c1        2 weeks ago          5.53MB
cypress/browsers    chrome69            37fc0f7cd4d0        7 months ago         1.11GB

I am sure cypress/browsers is well optimised, but npm i, if it got cypress pre-installed, got another 400mb into image, or i do something wrong? - think it is because it pulls some binaries which aren't needed?

@jennifer-shehane
Copy link
Member

I got a question if there is a chance to install cypress without electron?

Hey, what is your goal in installing cypress without electron? Just want to understand the motivation clearer? Size optimization? Want to install your own Electron version?

@dmce
Copy link

dmce commented Apr 30, 2019

Gonna add a comment on this as for us it would be to install our own version of electron. We are packing our app with electron 4.0.0 so would like to test against it

@eugene-matvejev
Copy link
Author

eugene-matvejev commented May 2, 2019

@jennifer-shehane , I try reduce size, and I try fix an issue when you work for corporations,

it is doable for corporations adopt few docker images in their private docker repositories, but it is close to impossible to allow fetch stuff from github/npm - and it is a big pain

don't get me wrong, I am big advocate for cypress anywhere where I go for work, but I just need a bit more help with these bits, as for example, I know unix environment good enough to setup proxies, but many people struggle and just hate tools which they can't install

the idea is, to somehow reduce docker image size, and reduce downloads,
as if cypress can execute using chrome, why it need electron? is it somewhere in dependencies? does cypress runner require electron? may be I don't understand something

@dmce I am looking forward to it.

eventually, I am doing my repository, as I talk on London IT events, I want promote this tool, as I found it very good :) but people will face issues like i mentioned above as many of them work in corporate environment, which is most of time is behind 1001 firewalls and proxies

@jennifer-shehane
Copy link
Member

There's an issue open to separate the installation of Electron from Cypress here: #3899

Some comments on how and why we couple Cypress with Electron today: #2761 (comment)

Also an issue on Cypress - to - Electron versioning: #3228

Please feel free to close this issue if you feel any of the others covers what you'd like.

@eugene-matvejev
Copy link
Author

@jennifer-shehane thanks!

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

No branches or pull requests

3 participants