Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A suite of docker images to build and test biber under Alpine Linux

NotificationsYou must be signed in to change notification settings

krumeich/biber-alpine

Repository files navigation

The TeX Live distribution does not provide biber for MUSL based Linux distrossuch as Alpine.

Building

This project provides the means to build and test biber under Alpine Linux from thesource. Run

docker build -t krumeich/biber-alpine .

to build the image. This takes some time, as all the perl dependencies aredownloaded and installed. Then run

docker run -v $PWD:/opt krumeich/biber-alpine

to build the biber binary. Mounting the$PWD as/opt makes thedirectory visible in which the build process installs the packed binary.

Testing

To test the build the binary should be run in an environment that does notcontain the build infrastructure, such as Perl and all the requiredlibraries. This project also provides a test environment. Run

docker build -f Dockerfile.test --tag krumeich/biber-test .

to build the image for the test environment. Then run

docker run --rm -v $PWD:/usr/local/bin krumeich/biber-test

to run simple tests to validate the build. Again, the current directory is mountedinto the container to access the binary which as been produced in the previoussteps.

Notes

  • Passing-e branch=<branchname> causes the branch<branchname> to bebuilt. If the parameter is omitted,branch will default todev:

    docker run -v $PWD:/usr/local/bin -e branch=krumeich/musl krumeich/biber-alpine
  • Passing-e repo=<reponame> causes the repository<reponame> to bebuilt. If the parameter is omitted,repo will default toplk/biber:

    docker run -v $PWD:/usr/local/bin -e repo=krumeich/biber krumeich/biber-alpine

Of course you can combine both variants to build an arbitrary branch from anarbitrary biber fork.

Building and Testing with make

  • Alternatively, if you havemake installed, usemake image to create theimage, then usemake biber to build biber. To pass a particular branch name,set the environment variablesBRANCH and/orREPO on the same command line:

    BRANCH=krumeich/musl REPO=krumeich/biber make biber
  • Consequently, runmake test to build the test environment and run the validation.

  • If you are completely lazy, then just runmake all to build all images, thebiber binary and run the test in one go.

About

A suite of docker images to build and test biber under Alpine Linux

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp