preparing mardown file handling in Dockerfiles + refactoring build directory

This commit is contained in:
Julien Neuhart
2018-04-10 13:26:23 +02:00
parent bca02f6198
commit 3860c151de
10 changed files with 58 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ else
fi
# Builds the Linux binary.
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" && mv gotenberg .build/;
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" && mv gotenberg .ci/;
# Bye!
exit 0;

25
.ci/gotenberg.yml Normal file
View File

@@ -0,0 +1,25 @@
# The port the application will listen to.
port: 3000
logs:
# Accepted values, in order of severity: DEBUG, INFO, WARN, ERROR, FATAL, PANIC.
# Messages at and above the selected level will be logged.
level: "DEBUG"
# Accepted values: text, json.
# When a TTY is not attached, the output will be in the defined format.
format: "text"
commands:
html:
timeout: 30
template: "xvfb-run -e /dev/stdout wkhtmltopdf {{ .FilePath }} {{ .ResultFilePath }}"
office:
timeout: 30
template: "unoconv --format pdf --output \"{{ .ResultFilePath }}\" \"{{ .FilePath }}\""
merge:
timeout: 30
template: "pdftk {{ range $filePath := .FilesPaths }} {{ $filePath }} {{ end }} cat output {{ .ResultFilePath }}"