Merge branch 'oupala-patch-1'

This commit is contained in:
Antonin Stefanutti 2016-08-23 19:24:43 +02:00
commit 18d1e1537f
2 changed files with 6 additions and 4 deletions

View File

@ -26,5 +26,7 @@ RUN curl -k \
RUN chmod +x bin/phantomjs
ENTRYPOINT ["/decktape/bin/phantomjs", "decktape.js"]
WORKDIR /slides
ENTRYPOINT ["/decktape/bin/phantomjs", "/decktape/decktape.js"]
CMD ["-h"]

View File

@ -263,15 +263,15 @@ For example:
* To convert an online HTML presentation and have it exported into the working directory under the `slides.pdf` filename:
[source,shell,subs=attributes+]
$ docker run --rm -v `pwd`:/pwd astefanutti/decktape {uri-revealjs} /pwd/slides.pdf
$ docker run --rm -v `pwd`:/slides astefanutti/decktape {uri-revealjs} slides.pdf
* Or, to convert an HTML presentation that's stored on the local file system in the `home` directory:
[source,shell]
$ docker run --rm -v `pwd`:/pwd -v ~:/home astefanutti/decktape /home/slides.html /pwd/slides.pdf
$ docker run --rm -v `pwd`:/slides -v ~:/home/user astefanutti/decktape /home/user/slides.html slides.pdf
* Or, to convert an HTML presentation that's deployed on the local host:
[source,shell]
$ docker run --rm --net=host -v `pwd`:/pwd astefanutti/decktape http://localhost:8000 /pwd/slides.pdf
$ docker run --rm --net=host -v `pwd`:/slides astefanutti/decktape http://localhost:8000 slides.pdf
It is recommended to use the following options from the {uri-docker-ref}/run[`docker run`] command: