packager: Problem when running electron-packager within Docker container
I’m experiencing weird issues with using electron-packager@5.1.1 within a container. The container is executed
docker run -v $(pwd):/tmp/w -w /tmp/w node:4.2.2-wheezy ./build.sh
where the project directory is attached as a volume and the build script execution is passed as an argument to the container.
The base image is node:4.2.2-wheezy, which means the environment inside the container is Debian Wheezy.
The electron-packager is executed through npm like this:
electron-packager . $npm_package_productName --out=dist --ignore='^/dist$' --prune --asar --overwrite --platform=darwin,win32 --arch=all --version=$npm_package_electronVersion
Now, the problem is the execution suddenly hangs after executing the electron-packager and apparently nothing is happening. After 15-20mins the execution goes further:
Downloading electron-v0.34.2-win32-ia32.zip
[> ] 0.0% (0 B/s)
[1000D[0K[1A[1000D[0K[1A[1000D[0KDownloading electron-v0.34.2-win32-ia32.zip
[> ] 0.0% of 40.03 MB (0 B/s)
[1000D[0K[1A[1000D[0K[1A[1000D[0KDownloading electron-v0.34.2-win32-ia32.zip
[=============> ] 32.3% of 40.03 MB (12.95 MB/s)
[1000D[0K[1A[1000D[0K[1A[1000D[0KDownloading electron-v0.34.2-win32-ia32.zip
[=============================> ] 68.1% of 40.03 MB (27.24 MB/s)
[1000D[0K[1A[1000D[0K[1A[1000D[0KDownloading electron-v0.34.2-win32-ia32.zip
[============================================>] 100.0% of 40.03 MB (32.03 MB/s)
[1000D[0K[1A[1000D[0K[1A[1000D[0KDownloading electron-v0.34.2-win32-ia32.zip
[============================================>] 100.0% of 40.03 MB (32.03 MB/s)
[1000D[0K[1A[1000D[0K[1A[1000D[0KDownloading electron-v0.34.2-win32-ia32.zip
[============================================>] 100.0% of 40.03 MB (32.03 MB/s)
Packaging app for platform win32 ia32 using electron v0.34.2
Then again the execution halts at Packaging app for platform win32 ia32 using electron v0.34.2 and after another 20mins npm goes on, however with no artifacts produced in the dist folder and no packaging for darwin platform or for win64.
This is happening for me on my Macbook Pro and our build server using different version of Docker.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 17 (4 by maintainers)
Commits related to this issue
- Move electron build output to /tmp folder https://github.com/electron-userland/electron-packager/issues/207 — committed to vespakoen/dwaler by vespakoen 10 years ago
i had the same issue, I just ignored
electron-packagerand it works, add--ignore=electron-packager@madebysid we ended up putting into the container as few files as possible. That fixed the recursion issue.