Skip to content

Commit

Permalink
Add jing for rng validation
Browse files Browse the repository at this point in the history
  • Loading branch information
joeytakeda committed Oct 20, 2023
1 parent 0876352 commit 4c85c00
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ RUN chmod a+x /usr/local/bin/saxon \
ant \
ant-contrib \
imagemagick \
jing \
&& npm install -g sass
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,20 @@ Base docker image for building XML-based static sites in the DHIL
* Apache ant and ant-contrib (for building)
* saxon (for running XSLT)
* sass (compiling SCSS -> CSS)
* imagemagick (routine image manipulation)
* imagemagick (routine image manipulation)
* jing (RelaxNG validation)
* Working dir: `/var/www`

After the image is pulled, it can be used like so:

1. Running `ant` for a build in ${PROJECT_DIR}/build.xml:

```bash
docker run -v ${PROJECT_DIR}:/var/www dhilsfu/static-base:latest ant
```

2. Validating files in a directory using Jing:

```bash
docker run -v $(pwd):/var/www dhilsfu/static-base:latest jing schema/schema.rng documents/*.xml
```

0 comments on commit 4c85c00

Please sign in to comment.