Skip to content

Commit

Permalink
Minor update of Docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
klakegg committed Feb 8, 2020
1 parent 08196e9 commit 759a23c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ RUN chmod a+x /files/bin/*
# Final image
FROM alpine:3.10

ENV XSD_PATH=/schemas

COPY --from=tmp /files /

VOLUME /src
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Supports XSD 1.0.
with:
script: |
xc --xsd-1.0 **/*.xsd
xc --xslt2 **/*.xslt
xc --xslt-2.0 **/*.xslt
```
2 changes: 1 addition & 1 deletion dist/bin/xsdchecker
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PROJECT=$(dirname $(dirname "$0"))

export XSD_PATH=${PROJECT}/xsd
export XSD_PATH=${XSD_PATH:-${PROJECT}/xsd}

if [ $JAVA_HOME ]; then
$JAVA_HOME/bin/java -jar $PROJECT/lib/xsdchecker.jar $@
Expand Down
23 changes: 1 addition & 22 deletions graal/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,7 @@ set -e
set -u

if [ "${2:-}" ]; then
xsd=$1
shift

case $xsd in
"--maven")
xsd="/schemas/maven-4.0.0.xsd"
;;
"--maven-4.0")
xsd="/schemas/maven-4.0.0.xsd"
;;
"--xsd-1.0")
xsd="/schemas/xsd-1.0.xsd"
;;
"--xslt2")
xsd="/schemas/xslt-2.0.xsd"
;;
"--xslt-2.0")
xsd="/schemas/xslt-2.0.xsd"
;;
esac

xsdchecker $xsd ${@}
xsdchecker ${@}
elif [ "${INPUT_SCRIPT:-}" ]; then
# Trigger script.
sh -ec "${INPUT_SCRIPT}"
Expand Down

0 comments on commit 759a23c

Please sign in to comment.