Update entrypoint
This commit is contained in:
@@ -9,7 +9,7 @@ Build the docker image using
|
||||
```
|
||||
You can then run the image using
|
||||
```bash
|
||||
docker run --name container-name -v /path/to/latex/build/dir/on/host:/root/data your-image-name:latest ./entrypoint.sh data
|
||||
docker run --name container-name -v /path/to/latex/build/dir/on/host:/root/data your-image-name:latest ./entrypoint.sh data file.tex false
|
||||
```
|
||||
The arguments that can be passed to the container are the following (in order):
|
||||
1. Extra arguments for `latexmk` (you can also use this to provide the entry file)
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
set -e
|
||||
|
||||
WORKDIR="$1"
|
||||
INSTALL_HELPERS="$2"
|
||||
EXTRA_ARGS="$3"
|
||||
EXTRA_PKGS="$4"
|
||||
FILE="$2"
|
||||
INSTALL_HELPERS="$3"
|
||||
EXTRA_ARGS="$4"
|
||||
EXTRA_PKGS="$5"
|
||||
|
||||
if [ -n "$EXTRA_PKGS" ]; then
|
||||
for pkg in $EXTRA_PKGS; do
|
||||
@@ -33,4 +34,4 @@ fi
|
||||
|
||||
echo "latexmk with extra args $EXTRA_ARGS"
|
||||
|
||||
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode $EXTRA_ARGS
|
||||
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode $EXTRA_ARGS "$FILE"
|
||||
|
||||
Reference in New Issue
Block a user