Get the latest image from the registry:
docker pull miktex/miktex-test-centos:8
or build it yourself:
docker build --tag miktex/miktex-test-centos:8 .
The directory containing the MiKTeX test suite must be mounted to the
container path /miktex/test-suite
. You can obtain the test suite
from GitHub.
The test directory (where the tests are run) must be mounted to the
container path /miktex/test
.
Optional: The directory containing the .rpm
package file must be
mounted to /miktex/build
. If this directory is not mounted then the
package will be installed from the official source.
You should specify a user by setting the container environment
variables USER_ID
and GROUP_ID
.
Run the tests:
git clone https://github.com/MiKTeX/miktex-testing ~/work/miktex/test-suite
docker run --rm -t \
-v ~/work/miktex/test-suite:/miktex/test-suite:ro \
-v ~/work/miktex/tests/centos-8:/miktex/test:rw \
-e USER_ID=`id -u` \
-e GROUP_ID=`id -g` \
miktex/miktex-test-centos:8