Sign inSign up

ivly/printer-devcontainer

By ivly

•Updated 19 days ago

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

Image
Developer tools
0

1.2K

ivly/printer-devcontainer repository overview

⁠ivly/printer-devcontainer

CI/development image for ivly-printer⁠, the HTTP service that renders GOBL invoices to PDF via LaTeX.

⁠What's included

ComponentPurpose
Go 1.26 (Debian Trixie)Base runtime and compiler
golangci-lintGo linter
TeXLivePDF rendering via pdflatex (koma-script, xcolor, colortbl, pdfx, embedfile, eso-pic, pgf, ...)
Python 3 + pre-commitGit hooks framework
Woodpecker CLICI pipeline linting
addlicenseLicense header management (AGPL-3.0)
gitleaksSecret detection

⁠Usage

Woodpecker CI:

steps:
  - name: test
    image: ivly/printer-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. The dedicated multi-arch builder needs to exist and be active before building. Create it once per machine:

docker buildx create --name ivly-printer-multiarch --driver docker-container --bootstrap --use

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

Without this step, make build-ci fails with ERROR: no builder "ivly-printer-multiarch" found.

⁠Build the image
make build-ci DEVCONTAINER_PUSH=true

⁠Source

Tag summary

Content type

Image

Digest

sha256:b790d0a09…

Size

1.2 GB

Last updated

19 days ago

docker pull ivly/printer-devcontainer