Commit 62eeb3d0 authored by Jorge Tardío Rubio's avatar Jorge Tardío Rubio
Browse files

Dockerfiles with envs

parent 05bc28d9
# Use the oficial image of mkdocs-material
FROM squidfunk/mkdocs-material
# Install plugins
RUN pip install mkdocs-pandoc-plugin mkdocs-git-revision-date-localized-plugin
# Expose MkDocs development server port
EXPOSE 8000
# Start development server by default
ENTRYPOINT ["mkdocs"]
CMD ["serve", "--dev-addr=0.0.0.0:8000"]
#!/bin/sh #!/bin/sh
docker build --file dockerfiles/mkdocs-material:dev.Dockerfile -t jtr0/mkdocs-material:dev . docker build --file dockerfiles/mkdocs-material+plugins.Dockerfile -t jtr0/mkdocs-material .
docker build --file dockerfiles/mkdocs-material:prod.Dockerfile -t jtr0/mkdocs-material:prod .
docker build --file dockerfiles/latex-pandoc.Dockerfile -t jtr0/latex-pandoc . docker build --file dockerfiles/latex-pandoc.Dockerfile -t jtr0/latex-pandoc .
#!/bin/sh #!/bin/sh
# Build public content with pandoc-plugin to combine markdown files # Build public content with pandoc-plugin to combine markdown files
docker run --rm -it -v ${PWD}:/docs jtr0/mkdocs-material:dev build docker run --rm -it -v ${PWD}:/docs -e ENABLE_PANDOC_EXPORT=1 jtr0/mkdocs-material build
# Generate templates pdfs # Generate templates pdfs
docker run --rm -it -v ${PWD}:/data jtr0/latex-pandoc /bin/bash -c 'cp -r /data/docs/imgs /imgs ; pandoc -N --template=eisvogel.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdfs/pdf_metadata.md /data/site/docs.pdf.md --pdf-engine=xelatex --toc -o /data/pdfs/eisvogel_template.pdf; pandoc -N --template=pandoc-scholar.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdfs/pdf_metadata.md /data/site/docs.pdf.md --pdf-engine=xelatex --toc -o /data/pdfs/pandoc-scholar_template.pdf; pandoc -N --template=default.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdfs/pdf_metadata.md /data/site/docs.pdf.md --pdf-engine=xelatex --toc -o /data/pdfs/default_template.pdf' docker run --rm -it -v ${PWD}:/data jtr0/latex-pandoc /bin/bash -c 'cp -r /data/docs/imgs /imgs ; pandoc -N --template=eisvogel.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdf_metadata.md /data/site/docs.pdf.md --pdf-engine=xelatex --toc -o /data/pdfs/eisvogel_template.pdf; pandoc -N --template=pandoc-scholar.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdf_metadata.md /data/site/docs.pdf.md --pdf-engine=xelatex --toc -o /data/pdfs/pandoc-scholar_template.pdf; pandoc -N --template=default.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdf_metadata.md /data/site/docs.pdf.md --pdf-engine=xelatex --toc -o /data/pdfs/default_template.pdf'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment