Skip to content

Commit

Permalink
travis: A few more Docker updates
Browse files Browse the repository at this point in the history
* Use `docker` instead of `podman`

* Use `$(pwd)` wherever possible as opposed to `.`

Signed-off-by: mr.Shu <[email protected]>
  • Loading branch information
mrshu committed Oct 15, 2020
1 parent 0654371 commit 5c218a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ cache:
- $HOME/.texlive

script:
- docker run -v .:/documents asciidoctor/docker-asciidoctor .ci/adoc-to-tex.sh rules
- docker run -v .:/documents mrshu/texlive-dblatex .ci/tex-to-pdf.sh rules
- docker run -v $(pwd):/documents asciidoctor/docker-asciidoctor .ci/adoc-to-tex.sh rules
- docker run -v $(pwd):/documents mrshu/texlive-dblatex .ci/tex-to-pdf.sh rules

# Same thing for superteam rules
- docker run -v .:/documents asciidoctor/docker-asciidoctor .ci/adoc-to-tex.sh superteam_rules
- docker run -v .:/documents mrshu/texlive-dblatex .ci/tex-to-pdf.sh superteam_rules
- docker run -v $(pwd):/documents asciidoctor/docker-asciidoctor .ci/adoc-to-tex.sh superteam_rules
- docker run -v $(pwd):/documents mrshu/texlive-dblatex .ci/tex-to-pdf.sh superteam_rules

after_error:
- docker logs asciidoc-to-html
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ If you'd like to try it on your own, it should not be such a big problem,
provided you have [Docker](https://docker.com) installed. You can then go
thorugh the build process in two easy steps:

podman run -v .:/documents asciidoctor/docker-asciidoctor .ci/adoc-to-tex.sh rules
podman run -v .:/documents mrshu/texlive-dblatex .ci/tex-to-pdf.sh rules
docker run -v $(pwd):/documents asciidoctor/docker-asciidoctor .ci/adoc-to-tex.sh rules
docker run -v $(pwd):/documents mrshu/texlive-dblatex .ci/tex-to-pdf.sh rules

Which will make the `rules.adoc` file go through the build steps above and
generate files `rules.html` and `rules.pdf` as a result.
Which will make the `rules.adoc` file (in the current working directory --
that's the `$(pwd)` part) go through the build steps above and generate files
`rules.html` and `rules.pdf` as a result.

0 comments on commit 5c218a8

Please sign in to comment.