Skip to content

Commit

Permalink
Merge pull request #2 from deogracia/first-step
Browse files Browse the repository at this point in the history
First step
  • Loading branch information
deogracia authored Feb 15, 2020
2 parents 40c2306 + cc49e01 commit ec6bf90
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_space = true
max_line_length = 120
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
!/ouput/.gitkeep
/output/
*.aux
*.log
*.pdf
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM alpine:3.11.3

RUN apk update && \
apk add --no-cache texlive-full

WORKDIR /latex
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# latex
my LaTeX docker image

Use it to create your document from LaTeX

# Usage

```
docker run -v "$(pwd)/:/latex" --user "$(id -u):$(id -g)" docker.pkg.github.com/deogracia/latex/latex xelatex /latex/doc.tex -output-directory=/latex/output
```

10 changes: 10 additions & 0 deletions doc.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
\documentclass{article}

\usepackage[american]{babel}
\usepackage{blindtext}

\begin{document}

\blindmathpaper

\end{document}
11 changes: 11 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
version: "3.7"

services:
sut:
build: .
command: test.sh
volumes:
- ./test.sh:/usr/local/bin/test.sh
- ./:/latex

38 changes: 38 additions & 0 deletions goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
file:
/latex/output/doc.pdf:
exists: true
mode: "0644"
filetype: file
contains: []
/usr/bin/lualatex:
exists: true
mode: "0777"
size: 6
owner: root
group: root
linked-to: luatex
filetype: symlink
contains: []
/usr/bin/pdflatex:
exists: true
mode: "0777"
size: 6
owner: root
group: root
linked-to: pdftex
filetype: symlink
contains: []
/usr/bin/xelatex:
exists: true
mode: "0777"
size: 5
owner: root
group: root
linked-to: xetex
filetype: symlink
contains: []
package:
texlive-full:
installed: true
versions:
- 20190410-r6
Empty file added output/.gitkeep
Empty file.
11 changes: 11 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

apk update; apk add curl

curl -fsSL https://goss.rocks/install | sh


cd /latex/output && \
xelatex /latex/doc.tex && \
cd /latex && \
goss validate

0 comments on commit ec6bf90

Please sign in to comment.