-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Enable CYPRESS_DOWNLOAD_MIRROR to be used with a static file server #5141
Comments
@tomasbjerre it wouldn't be pretty, but I think you can still name your static files/folders with the query param strings. Let me know if that works for you. However I do agree changing this would make it much easier |
I also "think" it is likely possible, but not easy. And I think it should be easy as I think it is part of solving a very common problem. This would solve the problem reported in #5036 where users are working on mixed platforms. Some will need the Windows binary and some the Linux binary. With this we could just set the version in Edit: It is not easy for me to convince the operations team that they should host a binary file, with a cryptic filename, and make it available from everywhere. And tell them they should do so because I just started using a new trendy tool I found on the Internet. |
Tried with Github, does not seem to work. |
@bkucera just curious if the source code for the download server is available so one could easily host it in a corporate environment? |
Same. I need to run Cypress on a private network that has a private proxied npm registry with no access to the outside world. The docs mention running a local mirror but no mention of how to do that |
I created a tool to deal with this problem: You would need to clone this repository and publish your own It uses dictator builder to, before {
"message": "Copy linux cypress to cypress.zip",
"triggers": [
{
"runningOnPlatform": ["linux"]
}
],
"actions": [
{
"copyFrom": "linux-x64.zip",
"target": "cypress.zip"
}
]
} |
We also found a way to make this work with static file servers. We're using Artifactory to host these assets, but it should work more generally. You'll want to download the .zip files and from Cypress, and upload them to your file server with the version number as the filename. For example:
Then, set
|
|
The code for this is done in cypress-io/cypress#23194, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
When
CYPRESS_DOWNLOAD_MIRROR
is specified Cypress will download the binaries from something likehttps://whatever/desktop?platform=OS&arch=ARCH
.This means we cannot serve these binaries from a static file server. Because of the query parameters.
Desired behavior:
Change the API so that the file gets downloaded from something like
https://whatever/desktop/platform/:platform/arch/:arc/cypress.zip
.Such an API can easily be implemented with a simple static file server. Something that is usually easy to setup in corporate environments.
Steps to reproduce: (app code and test code)
CYPRESS_DOWNLOAD_MIRROR
to point at a static file server.Versions
3.4.1
The text was updated successfully, but these errors were encountered: