From 7053a433ba0e1feac60cb75670ec13f0be526e3b Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 30 Sep 2015 19:41:42 -0500 Subject: [PATCH] Working around how to nicely execute in docker images --- build-html-docker.sh | 9 +++++++++ build-html.sh | 2 +- build-pdf-docker.sh | 7 +++++++ build-pdf.sh | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 build-html-docker.sh create mode 100755 build-pdf-docker.sh diff --git a/build-html-docker.sh b/build-html-docker.sh new file mode 100755 index 0000000..9ae39ab --- /dev/null +++ b/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 diff --git a/build-html.sh b/build-html.sh index 28db74d..75d38d4 100755 --- a/build-html.sh +++ b/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/* diff --git a/build-pdf-docker.sh b/build-pdf-docker.sh new file mode 100755 index 0000000..ff829de --- /dev/null +++ b/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 diff --git a/build-pdf.sh b/build-pdf.sh index b58a665..ec03d43 100755 --- a/build-pdf.sh +++ b/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