Browse Source

Getting closer to a nice deploy

environments/production/deployments/9
Drew Short 9 years ago
parent
commit
838913d80f
  1. 14
      build-html-docker.sh
  2. 6
      build-html.sh
  3. 3
      build-pdf-docker.sh
  4. 4
      build-pdf.sh

14
build-html-docker.sh

@ -2,11 +2,15 @@
cd /source
userid="$(cat userid.info)"
# Script to build an HTML site from the PDF source
pdf2htmlEX --embed cfijo --dest-dir out DPSResume.pdf
chown -R root:root out
chmod -R 666 out
chown -R $userid:$userid out/
chmod -R 666 out/
chmod u+x out/
tar -czvf ResumeSite.tar.gz -C out .
chmod 666 *.tar.gz
#rm -rf out
tar -czvf ResumeSite.tar.gz -C out/ .
chown $userid:$userid ResumeSite.tar.gz
chmod 666 ResumeSite.tar.gz
rm -rf out

6
build-html.sh

@ -1,4 +1,8 @@
#!/usr/bin/env bash
echo "$(id -u)" > userid.info
# Script to build an HTML site from the PDF source
docker run -d -v $(pwd):/source sothr/pdf2htmlex /usr/bin/env bash /source/build-html-docker.sh
docker run -v $(pwd):/source sothr/pdf2htmlex /usr/bin/env bash /source/build-html-docker.sh
rm userid.info

3
build-pdf-docker.sh

@ -2,7 +2,10 @@
cd /source
userid="$(cat userid.info)"
# Script to build a PDF from the latex source
latex --output-format pdf DPSResume.tex
chown $userid:$userid DPSResume.pdf
chmod 666 DPSResume.pdf
rm DPSResume.log

4
build-pdf.sh

@ -1,4 +1,8 @@
#!/usr/bin/env bash
echo "$(id -u)" > userid.info
# Script to build a PDF from the latex source
docker run -v $(pwd):/source schickling/latex /usr/bin/env bash /source/build-pdf-docker.sh
rm userid.info
Loading…
Cancel
Save