-
Notifications
You must be signed in to change notification settings - Fork 253
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
Fails to install on Alpine linux #40
Comments
Where does termios.h come from that it is trying to compile with? Maybe the node version is too old or something? I managed to install on an ubuntu image using latest nodejs but the Alpine root image I need to use only has node versions: |
I believe termios.h comes from the system libraries which I guess Alpine is missing (or has a different version). I'm not entirely sure, that is legacy stuff I've never touched and am not too experienced with. I don't think it's related to |
Ok, I'll try and figure it out. Rather not redo everything on Ubuntu and bloat the docker image footprint. I'll post back here if I find out what the issue is. |
One thing I noticed. I can install pty.js just fine. No build error. Is that part of the code base very different? |
pty.js doesn't have the same termios struct as you do. If I remove just those two offending lines (setting the baud rate) it builds on Alpine. Are they necessary? |
Looks like it was added in 424842d (from here https://github.com/jeremyramin/pty.js/tree/prebuilt), it would be nice to understand why the change was made in case it fixed some bug. |
Perhaps your system has the following APIs instead?
Perhaps we could use an http://pubs.opengroup.org/onlinepubs/7908799/xsh/termios.h.html |
Looking at https://linux.die.net/man/3/termios, I tried replacing those 2 lines with this which builds and runs
Could you give that a try on your OS? Perhaps the current way is hooking into assumed private APIs? |
Brilliant that works :) |
Great! I'll make the change 😃 |
Unable to build again on Getting this warning while build -
and this error while running container -
|
You should put a .dockerignore in the dirctory. And ignore node_modules to avoid npm install being overwrited by the COPY directive in the Dockerfile.
|
I have node-pty working great on my Mac to make a web based terminal but I'm trying to install node-pty on Alpine linux container and it is failing with the error below. Any ideas as to why?
The text was updated successfully, but these errors were encountered: