Browse Source

Working around how to nicely execute in docker images

environments/production/deployments/9
Drew Short 9 years ago
parent
commit
7053a433ba
  1. 9
      build-html-docker.sh
  2. 2
      build-html.sh
  3. 7
      build-pdf-docker.sh
  4. 2
      build-pdf.sh

9
build-html-docker.sh

@ -0,0 +1,9 @@
#!/usr/bin/env bash
cd /source
# Script to build an HTML site from the PDF source
pdf2htmlEX --embed cfijo --dest-dir /source/out /source/DPSResume.pdf
tar -czvf ResumeSite.tar.gz out/*
chmod 777 *.tar.gz

2
build-html.sh

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Script to build an HTML site from the PDF source
docker run -d -v $(pwd):/source sothr/pdf2htmlex pdf2htmlEX --embed cfijo --dest-dir /source/out /source/DPSResume.pdf
docker run -d -v $(pwd):/source sothr/pdf2htmlex /usr/bin/env bash /source/build-html-docker.sh
tar -czvf ResumeSite.tar.gz out/*

7
build-pdf-docker.sh

@ -0,0 +1,7 @@
#!/usr/bin/env bash
cd /source
# Script to build a PDF from the latex source
latex --output-format pdf DPSResume.tex
chmod 777 DPSResume.pdf

2
build-pdf.sh

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Script to build a PDF from the latex source
docker run -v $(pwd):/source schickling/latex latex --output-format pdf /source/DPSResume.tex
docker run -v $(pwd):/source schickling/latex /usr/bin/env bash /source/build-pdf-docker.sh
Loading…
Cancel
Save