Restructure repo
All checks were successful
Create and publish container / build_container (push) Successful in 7s
All checks were successful
Create and publish container / build_container (push) Successful in 7s
This commit is contained in:
23
latex/entrypoint.sh
Executable file
23
latex/entrypoint.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
EXTRA_ARGS="$1"
|
||||
EXTRA_PKGS="$2"
|
||||
|
||||
if [ -n "$EXTRA_PKGS" ]; then
|
||||
for pkg in $EXTRA_PKGS; do
|
||||
echo "Install $pkg by apk"
|
||||
apk add "$pkg"
|
||||
done
|
||||
fi
|
||||
|
||||
cd /root/data
|
||||
|
||||
if [ -n "$WORKING_DIR" ]; then
|
||||
cd "$WORKING_DIR"
|
||||
fi
|
||||
|
||||
echo "Runner started, will run latexmk with extra args $EXTRA_ARGS"
|
||||
|
||||
latexmk -pdf $EXTRA_ARGS
|
||||
Reference in New Issue
Block a user