-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reference docker hub image for better user experience.
- Loading branch information
1 parent
d51f30a
commit e0fd007
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
# Run | ||
# Use with image from Docker Hub | ||
|
||
docker build --tag ad . | ||
docker run -v $PWD/path/to/asciidoc:/opt/docs -w /opt/docs ad "*.adoc" | ||
Convert all `.adoc` files in `path/to/asciidoc` into `.pdf` which will be placed in `path/to/asciidoc` as well. | ||
|
||
docker run -v $PWD/path/to/asciidoc:/opt/docs -w /opt/docs hochzehn/asciidoctor-pdf "*.adoc" | ||
|
||
# Build locally | ||
|
||
docker build --tag asciidoctor-pdf . | ||
docker run -v $PWD/path/to/asciidoc:/opt/docs -w /opt/docs asciidoctor-pdf "*.adoc" |