Skip to content

Instantly share code, notes, and snippets.

@peterstadler
Last active December 17, 2019 13:16
Show Gist options
  • Save peterstadler/9ea79071ef656377341e0da3d56c3c3a to your computer and use it in GitHub Desktop.
Save peterstadler/9ea79071ef656377341e0da3d56c3c3a to your computer and use it in GitHub Desktop.
use Docker to build the TEI Guidelines locally
#!/bin/sh
# Docker image to use for building the Stylesheets and TEI Guidelines
#IMAGE=teic/jenkins:dev
IMAGE=teic/teidev-docker
# local path to the TEI Guidelines repo you cloned from https://github.com/teic/tei
TEI_PATH=/Users/pstadler/repos/TEI
# local path to the TEI Stylesheets repo you cloned from https://github.com/teic/stylesheets
STYLESHEETS_PATH=/Users/pstadler/repos/TEI-Stylesheets
cd $TEI_PATH
docker run --rm -v $TEI_PATH:/tei -w /tei/P5 -v $STYLESHEETS_PATH:/usr/share/xml/tei/stylesheet -it --entrypoint "make" $IMAGE $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment