astefanutti / decktape

PDF exporter for HTML presentations
MIT License
2.21k stars 177 forks source link

docker container crashes #106

Closed johanngb closed 7 years ago

johanngb commented 7 years ago

I run

docker run astefanutti/decktape http://lab.hakim.se/reveal-js slides.pdf

and get

(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Unable to create PDF file, make sure that output file target is available (node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I am on ubuntu 17.04. I have tried this on two different computers (both 17.04) and get the same error message. Happy to provide any other information that might be helpful.

deki commented 7 years ago

Take a look at the README, you need to specify where to save the result:

$ docker run --rm -v `pwd`:/slides astefanutti/decktape http://lab.hakim.se/reveal-js slides.pdf
johanngb commented 7 years ago

Thanks for the quick reply! I tried that first actually, and got the same error message. I thought maybe something was going wrong with accessing the host file system, so that's why I tried the "simpler" version (Bottom of readme, under "Alternatively, you can use the docker cp command.").

Is there any other variant that might make sense to try?

deki commented 7 years ago

Ok I see. For me that's working fine.

johanngb commented 7 years ago

Interesting. I have a windows machine. I will install docker on there and try that out too, and let you know what happens.

johanngb commented 7 years ago

I got the same error when I tried it on windows. (Windows 10, fresh docker install). Are you using the most recent docker image? Thanks!

deki commented 7 years ago

I'm also using Ubuntu 17.04 and it's working fine. You can also try earlier versions, e.g. 1.0.0 also works for me.

astefanutti commented 7 years ago

I've just fixed a permissioning issue with the /slides directory.

@johanngb could you please retry with the latest astefanutti/decktape image?

johanngb commented 7 years ago

Yes, it works now. Thank you so much!

astefanutti commented 7 years ago

Thanks for the feedback. Let me close this then.