-
Notifications
You must be signed in to change notification settings - Fork 90
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
Crashes inside Alpine docker #170
Comments
Can you share your |
My
Here's my const pdfDoc = new HummusRecipe(input, output);
pdfDoc
.editPage(2)
.image('/path/to/image1.png'), 350, 660, {
width: 200,
keepAspectRatio: true,
})
.image('/path/to/image2.png'), 125, 740, {
width: 50,
keepAspectRatio: true,
})
.endPage()
.endPDF(console.log); |
Might be worth noting that I also ran apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python Inside the container, then restared my app, but to no avail. |
Thanks for sharing. Would you like to give this a try? galkahana/HummusJS#320 (comment)
|
@chunyenHuang Thanks that works! For posterity, we had to add the following things to our
|
I come across this issue, but the solution given doesn't work for me. This is my Dockerfile
I have used "hummus-recipe": "^1.9.2" and node:10.13.0-alpine, but still got this following error in the container
|
@AndreHermanto can you |
@AyushG3112 I can't ssh into container as the container exited immediately. Is my Dockerfile correct? |
@AndreHermanto seems fine but I've seen issues when
with
I think that should work |
@AyushG3112 Its the same, the container still exited immediately. |
Any resolution for this issue? I tried all above mentioned methods and still no help |
Hi @chunyenHuang @AyushG3112 Dockerfile
The last step executed is log Encrypt an then simply it exit from docker run. Last log never is printed (and any other error) and when I go inside container with docker exec i saw that the destination file has 0 size. |
My mistake, the correct is:
|
Node.js Version: 10.15.0
hummus-recipe: V1.9.2
Hi,
I am trying to add image to an existing PDF using
.image
. It works working on my local machine (Ubuntu 16.04), however it crashes inside the Alpine container on callingendPDF
(thus creating a corrupted PDF).Tried downgrading to v1.7.4, didn't help.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: