Skip to content

Commit

Permalink
Upgrade DTDs and Schematrons
Browse files Browse the repository at this point in the history
  • Loading branch information
hubgit committed Aug 20, 2020
1 parent a2cb84f commit bced7bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 4,11 @@ FROM hubdock/php7-apache-saxonhe AS builder
WORKDIR /build
COPY build ./

ARG JATS4R_SCHEMATRONS_VERSION=0.0.6
ARG JATS4R_SCHEMATRONS_VERSION=0.0.7
RUN curl -L https://github.com/JATS4R/jats-schematrons/archive/v${JATS4R_SCHEMATRONS_VERSION}.tar.gz | tar xvz
RUN php generate-xsl.php jats-schematrons-${JATS4R_SCHEMATRONS_VERSION}/schematrons/1.0/jats4r.sch jats4r.xsl

ARG SCHEMATRONS_COMMIT=c9ed2c0c43a9b291155b6f4112b8325290f4c757
ARG SCHEMATRONS_COMMIT=30331a1b7d1a641457b57d778e1e79e36d9822b3
RUN curl -L https://github.com/elifesciences/eLife-JATS-schematron/raw/${SCHEMATRONS_COMMIT}/src/pre-JATS-schematron.sch -o elife-schematron-pre.sch
RUN php generate-xsl.php elife-schematron-pre.sch elife-pre.xsl

Expand All @@ -19,13 19,13 @@ RUN php generate-xsl.php elife-schematron-final.sch elife-final.xsl
FROM hubdock/php7-apache-saxonhe

WORKDIR /dtds
ARG DTDS_VERSION=0.0.6
ARG DTDS_VERSION=0.0.7
ENV DTDS_VERSION=${DTDS_VERSION}
RUN curl -L https://github.com/JATS4R/jats-dtds/archive/v${DTDS_VERSION}.tar.gz | tar xvz
ENV XML_CATALOG_FILES=/dtds/jats-dtds-${DTDS_VERSION}/schema/catalog.xml

WORKDIR /var/www/html
ARG VALIDATOR_COMMIT=6478d41363d70caaa7ba89218f3a19d7bbdc3cf8
ARG VALIDATOR_COMMIT=8709245e77739204d62f6ca3745a411c69c5ec0a
RUN curl https://raw.githubusercontent.com/elifesciences/schematron-validator/${VALIDATOR_COMMIT}/backend/schematron-validator-api/countries.xml -o countries.xml
RUN curl https://raw.githubusercontent.com/elifesciences/schematron-validator/${VALIDATOR_COMMIT}/backend/schematron-validator-api/journal-DOI.xml -o journal-DOI.xml
RUN curl https://raw.githubusercontent.com/elifesciences/schematron-validator/${VALIDATOR_COMMIT}/backend/schematron-validator-api/publisher-locations.xml -o publisher-locations.xml
Expand Down

0 comments on commit bced7bd

Please sign in to comment.