-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Alpine Linux support #419
Comments
I had the same issue... Yeah, it looks like |
This likely has to do with It may be easier opening an issue over there https://github.com/electron/electron/issues and ask about what it will take to build It may already be possible, so any direction here would be helpful and we can look at adding a new dist when we release. |
This is a year old. -_- |
Also would like this |
I spent some time looking into this yesterday, and could not get all the required libraries work on Alpine. If anyone can actually build Electron on Alpine Linux, then we could potentially setup a CI chain that builds Alpine-specific Cypress version, but I expect the demand to be pretty low |
I am going to close this for now, because Electron itself has their Alpine Linux build issue open electron/electron#2727 (opened in 2015). If that issue is resolved successfully, we can revisit Alpine Linux support. |
It appears that Electron 3 no longer depends on gconf. Could this issue be reopened? |
It's been two years. |
This issue will be covered as part of our 4.0 release - which includes upgrading Electron. |
Hello, Any news about this issue? |
maybe you can try frolvlad/alpine-glibc image |
@dsebastien A lot of us are waiting for this still. As a workaround I only run tests using cypress in the cypress node image and everything else in alpine images. I'll just swap the cypress node image afterwards with the appropriate image later. |
Hi guys, I tried installing cypress via npm on alpine linux and ended up with: I got the /usr/lib/libasound.so.2 from:
My first run was with alpine:3.10 but that did not get me anywhere. So I used this image: frolvlad/alpine-glibc:alpine-3.9_glibc-2.29 Would it be an option to clone the git repo and just completely build Cypress against musl or is the problem with my libasound 2 library? |
Tried building on alpine linux and can confirm that my main problem is this error:
Quote: Chris => Alsa-libs APKBUILD for alpine contains this statement: Anybody got an idea to resolve this issue? |
UPDATE: I manually build alsa-lib to fix the version error with shared library /usr/lib/libasound.so.2 . Building without the Unfortunately the following error still appears and make the build fail: |
Installing the |
I have installed the following packages using apk:
ℹ️Command ℹ️Other mislinked libraries (found with ldd)
This is as far as I could get with Alpine 3.10 and Cypress (base image being |
Xvfb package enables you to run graphical applications without a display (e.g., browser tests on a CI server) so cypress needs xvfb package to be installed. It is not going to work on node:alpine image as the xvfb package is not present. Running on markadams/chromium-xvfb-js docker image fixed the issue for me. |
Which means (predictably) that you first need to build |
Aha yes, the predictable libc vs musl roadblock because obviously Cypress "uses the Electron binaries" how ignorant of me... I wonder how we might force Cypress to point towards the unofficially supported alpine community repo Chromium? Maybe we can simply disable the Cypress verify step |
Is this what you're looking for? https://docs.cypress.io/guides/guides/launching-browsers.html#Launching-by-a-path UPD But you need |
Correct, thanks though it nearly worked and gave some better errors:
|
Any chance of support for Alpine Linux? Cypress still will not run on it. Alpine Linux is integral to many testing pipelines that use Docker, so it'd be really great to get support. |
Same here. Please support Alpine Linux. All of our organization pipelines are on Alpine. It's really necessary. |
@scott-f9 @salarhfz-fs The issue is with Electron, not with Cypress. If you can provide step-by-step instructions on how to build Electron under Alpine Linux that would be a major push in this direction. |
To widen the envelope a bit, the browser engine doesn't need to be Electron, right? The original poster doesn't define which engine they want to run. This comment mentions it in 2017:
For me, Alpine + Chromium headless + Cypress would be sweet. My itch is long image downloads in Cloud Build (CI). |
@akauppi Correct me if I'm wrong, but in order to run Cypress you need Electron, even if you run your tests in Edge down the road. By the way, I just noticed that there's a |
I have also stumbled across this problem. I am under the impression that it has now been described in detail and that someone familiar with the components involved can do it for little money. I would be willing to give $100 to the person who summarizes the details found and describes what needs to be done. $500 I would pay for the implementation. How do you guys see this. Am I completely wrong on this or is this realistic. |
Here are steps to build electron for libc: https://www.electronjs.org/docs/latest/development/build-instructions-linux |
I've created an $500 offer. https://www.upwork.com/jobs/~01a73a498cdd7bd7f5 |
Hi @cbleek The offer is not on the website anymore. Has someone completed it? Is so, can you share the image? If not, will I get 500 USD if I share the image with you? It's a win & win situation for me ;-) Unless you dont reply. |
It's a task that takes a lot of time. Rather weeks than days. At least that's what I was told by a very good developer who wanted to try.
|
👋🏻 Hey friends. Perhaps I could get a quick status update here? @flotwig do you know what the deal is w/ Alpine? I'm going through like 8 repositories at work and adding Cy in is particularly painful because the Docker setups are Alpine-based 😸 |
It looks like there's a package for |
Linking a related issue of the |
@tobiasbueschel @liam-verta @cbleek did you manage to find a solution for this? |
Your system is missing the dependency: XvfbEcountered:
gitlab-ci.yml
package.json
Requesting assistance please, I need it on our company project. |
You can request assistance from the Cypress technical community on Discord You can also refer to the GitLab CI documentation for using Cypress in this environment. In the example given on the documentation site, the Cypress Docker version used is Since this issue is marked as
type: feature
|
I don't know if this is even possible but I was wondering if there are any plans to support Alpine Linux.
I don't know if it's helpful but here's an
ldd
on theCypress
executable from within Alpine:The text was updated successfully, but these errors were encountered: