Skip to content

Commit

Permalink
Merge pull request #109 from hathitrust/validate-cache-usr-local
Browse files Browse the repository at this point in the history
Install validate-cache in /usr/local/bin
  • Loading branch information
aelkiss authored Jan 16, 2024
2 parents 3d1a9a7 + 22bfa8c commit 8b4115d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ volumes_to_test
ingest_stage
ingest_sips
incoming_samples
.gnupg
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ RUN mkdir /extlib
RUN chown $UID:$GID /extlib
ENV PERL5LIB="/extlib/lib/perl5:$FEED_HOME/lib"

COPY ./src/validateCache.cpp /usr/src/validateCache.cpp
RUN /usr/bin/g++ -o /usr/local/bin/validate-cache /usr/src/validateCache.cpp -lxerces-c

USER $UID:$GID

WORKDIR $FEED_HOME
Expand All @@ -93,8 +96,6 @@ RUN mkdir -p /tmp/prep/toingest /tmp/prep/failed /tmp/prep/ingested /tmp/prep/lo
RUN mkdir $FEED_HOME/bin $FEED_HOME/src $FEED_HOME/.gnupg
RUN chown $UID:$GID $FEED_HOME/.gnupg
RUN chmod 700 $FEED_HOME/.gnupg
COPY ./src/validateCache.cpp $FEED_HOME/src/validateCache.cpp
RUN /usr/bin/g++ -o bin/validateCache src/validateCache.cpp -lxerces-c

COPY . $FEED_HOME

Expand Down
2 changes: 1 addition & 1 deletion etc/config/base_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ gpg_path: /usr/local/feed/etc/gpg
imagemagick: /usr/bin/convert
jhove: /opt/jhove/jhove
jhoveconf: /opt/jhove/conf/jhove.conf
xerces: /usr/local/feed/bin/validateCache
xerces: /usr/local/bin/validate-cache
xerces_cache: /usr/local/feed/etc/schema.cache
grk_compress: /usr/bin/grk_compress
grk_decompress: /usr/bin/grk_decompress
Expand Down

0 comments on commit 8b4115d

Please sign in to comment.