Sign inSign up

ivly/gobl-latex-devcontainer

By ivly

•Updated 5 months ago

ivly-gobl-latex development container image for local use with VS Code or within CI pipelines

Image
Developer tools
0

1.1K

ivly/gobl-latex-devcontainer repository overview

⁠ivly/gobl-latex-devcontainer

CI/development image for gobl.latex⁠, a pure Go library that renders GOBL invoices into LaTeX source using bundled KOMA-Script templates. PDF compilation via pdflatex is the responsibility of the consuming application (see ivly-printer⁠) and is intentionally not part of this image.

⁠What's included

ComponentPurpose
Go 1.26 (Debian Trixie)Base runtime and compiler
golangci-lintGo linter
Python 3 + pre-commitGit hooks framework
Woodpecker CLICI pipeline linting
addlicenseLicense header management (Apache-2.0)
gitleaksSecret detection
markdownlint (mdl)Markdown linting (pre-commit hook and make lint-md)

⁠Usage

Woodpecker CI:

steps:
  - name: test
    image: ivly/gobl-latex-devcontainer:latest
    commands:
      - make tools-install
      - make test

Local development: Open the project in VS Code with the Dev Containers extension.

⁠Build

⁠Prerequisites

devcontainer build runs through docker buildx. A multi-arch builder needs to exist and be active before building. Create it once per machine:

docker buildx create --name gobl-latex-multiarch --driver docker-container --bootstrap --use

Verify with docker buildx ls (the gobl-latex-multiarch row should be marked * for active and running). If the builder already exists, a single docker buildx use gobl-latex-multiarch is enough.

Without an active buildx builder, make build-ci fails with ERROR: no builder "<name>" found.

⁠Build the image
make build-ci DEVCONTAINER_PUSH=true

⁠Source

Tag summary

Content type

Image

Digest

sha256:100ddad53…

Size

844.7 MB

Last updated

5 months ago

docker pull ivly/gobl-latex-devcontainer