Skip to content

Commit

Permalink
Using docker to manage latex dependencies instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ghseeli committed Oct 6, 2023
1 parent f4caf16 commit 014bc09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/compile_tex_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,12 @@ jobs:
- name: Check out the code
uses: actions/checkout@v2

- name: Install LaTeX packages
- name: Build TeXLive Docker
run: |
sudo apt-get update
sudo apt-get install liblz4-dev
sudo apt-get install liblz4-tool
wget http://mirrors.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz -O - | tar -x --gzip
mv $(ls | grep install) install-tl
./install-tl/install-tl -profile texlive.profile
export PATH=$(pwd)/texlive/bin/x86_64-linux:$PATH
sudo apt-get install texlive texlive-extra-utils texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-luatex texlive-xetex texlive-pstricks
sudo apt-get install latexmk
tlmgr update --self
tlmgr update --all
tlmgr install $(cat .tlmgr-dep)
docker build -t my-latex-image .
- name: Compile LaTeX files
run: |
chmod a+x scripts/build-pdfs.sh
scripts/build-pdfs.sh
docker run --rm -v $PWD:/data my-latex-image
- name: Move PDFs to correct location
run: |
for DIR in $(ls -d */ | grep ''); do
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM texlive/texlive:latest

# Copy your project files into the container
COPY . /data
COPY ./ReAdTeX /ReAdTeX

# Set the working directory
WORKDIR /data

# Specify the entry point (command to run when the container starts)
ENTRYPOINT ["/data/scripts/build-pdfs.sh"]

0 comments on commit 014bc09

Please sign in to comment.