-
Notifications
You must be signed in to change notification settings - Fork 14
cant buid docker image #65
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
Comments
Since the last commit a build should work (tried again on Debian Bullseye with Docker Package from Docker). Did you build the container with the old state of the repo in the past on the same system? If so try Best Regards |
I tried on 'pwd' Mac m1 Synology,all have the same issues |
As far as I know the stuff is generally not tested on ARM Hardware. I don't know how the Docker Suite opperates on M1 Mac's so it could be ARM or Silicon (x86 emulation). Is the Synology a x86 based box? I think they have like QNAP x86 and ARM boxes. If it's ARM this could explain the problem. Aspecially the smaller SOHO boxes are often ARM chips. Best Regards |
thanks reply, my synology is x86,have you tried to build it on "play with docker"? |
The build I did yesterday was on Debian Bullseye x86_64 based box. Docker is the from docker-ce package I'm actually running a new one. The Repo state is from yesterday (3.12.2022). But I getting within seconds far above step 6 (by using no cache). Build command is like this Will give a feedback in a few minutes whether it completes. But I think so. |
the latest commit is 21 days ago.i just git clone and build any code need be changed? |
No nothing need to be changed. So on Debian Bullseye AMD64 the build succeeds. In Docker Desktop the build of SQLite in fact fails also on AMD64 Mac (iMac Late 2019). |
thanks I will try to build on Debian |
I scrolled through the stuff and I have a thesis why this fails. When the better-sqlite stuff get's installed it seems to be necessary to get a new version of node. Which seems to be downlaodes from this project: Unofficial Node Builds It seems that the mainline builds have no SQLite lib linked or statically compiled in. For this NPM seems to detect and/or decide the architecture for the build to download. So in Docker desktop it detects tthe following and fails to find a prebuild:
This seems to lead to a try of rebuilding Node and/or the extension which fails. I think here the C Library is the biggest issue. The little Linux in Docer Desktop seems to use musl not libc6. This of course could lead to uncontrolled build runs which fail. I don't know how the Synology Linux Base is build but I think it's deffinitly possible that they also use on of the more tiny C libraries for their stuff. All just a thesis. |
I investigated a bit on this and eventually found a temporary solution.
This is the fix:
Here change: FROM node:current-alpine as deps To this: FROM node:18-alpine as deps Then run this:
This should produce a full working build on a x86_64 box. For Apple M1 I can't tell. Tested on Debian and Docker Desktop (x86_64 iMac Late 2019) both have working builds. Your Synology should work. Hope this helps. Best Regards |
Better SQLite just provides prebuilds for LTS versions. Check the project README. So the Dockerfile should use |
Uh oh!
There was an error while loading. Please reload this page.
The text was updated successfully, but these errors were encountered: