forked from pkiraly/qa-catalogue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue pkiraly#117: update Docker 0.5.0
- Loading branch information
Showing
3 changed files
with
49 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scripts/downloaders | ||
scripts/record-patterns/ | ||
scripts/sqlite/import-issue-details.php | ||
scripts/sqlite/import-issue-summary.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ LABEL maintainer="Péter Király <[email protected]>, Ákos Takács <rimelek@rimel | |
LABEL description="QA catalogue - a metadata quality assessment tool for MARC based library catalogues." | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG SMARTY_VERSION=3.1.44 | ||
ARG SOLR_VERSION=8.11.1 | ||
|
||
# install R | ||
ENV TZ=Etc/UTC | ||
|
@@ -39,43 +41,18 @@ RUN apt-get update \ | |
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# install metadata-qa-marc | ||
RUN mkdir -p /opt/metadata-qa-marc/scripts \ | ||
&& mkdir -p /opt/metadata-qa-marc/target | ||
|
||
COPY target/metadata-qa-marc-0.5-jar-with-dependencies.jar /opt/metadata-qa-marc/target/ | ||
COPY scripts /opt/metadata-qa-marc/scripts/ | ||
COPY setdir.sh.template /opt/metadata-qa-marc/setdir.sh | ||
|
||
# copy common scripts | ||
COPY common-variables \ | ||
common-script \ | ||
metadata-qa.sh \ | ||
LICENSE \ | ||
README.md /opt/metadata-qa-marc/ | ||
|
||
# copy analysis scripts | ||
COPY validator \ | ||
prepare-solr \ | ||
index \ | ||
solr-functions \ | ||
completeness \ | ||
classifications \ | ||
authorities \ | ||
tt-completeness \ | ||
shelf-ready-completeness \ | ||
serial-score \ | ||
formatter \ | ||
functional-analysis \ | ||
network-analysis /opt/metadata-qa-marc/ | ||
|
||
RUN mkdir -p /opt/metadata-qa-marc/marc \ | ||
COPY target/metadata-qa-marc-0.5-release.zip /opt | ||
|
||
RUN cd /opt \ | ||
&& unzip metadata-qa-marc-0.5-release.zip \ | ||
&& rm metadata-qa-marc-0.5-release.zip \ | ||
&& mv metadata-qa-marc-0.5 metadata-qa-marc \ | ||
&& mv /opt/metadata-qa-marc/setdir.sh.template /opt/metadata-qa-marc/setdir.sh \ | ||
&& mkdir -p /opt/metadata-qa-marc/marc \ | ||
&& sed -i.bak 's,BASE_INPUT_DIR=your/path,BASE_INPUT_DIR=/opt/metadata-qa-marc/marc,' /opt/metadata-qa-marc/setdir.sh \ | ||
&& sed -i.bak 's,BASE_OUTPUT_DIR=your/path,BASE_OUTPUT_DIR=/opt/metadata-qa-marc/marc/_output,' /opt/metadata-qa-marc/setdir.sh | ||
|
||
ARG SMARTY_VERSION=3.1.44 | ||
|
||
# install web application | ||
RUN apt-get update \ | ||
&& sed -i.bak 's,BASE_OUTPUT_DIR=your/path,BASE_OUTPUT_DIR=/opt/metadata-qa-marc/marc/_output,' /opt/metadata-qa-marc/setdir.sh \ | ||
# install web application | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
apache2 \ | ||
php \ | ||
|
@@ -106,7 +83,6 @@ RUN apt-get update \ | |
&& sed -i.bak 's,</VirtualHost>, RedirectMatch ^/$ /metadata-qa/\n <Directory /var/www/html/metadata-qa>\n Options Indexes FollowSymLinks MultiViews\n AllowOverride All\n Order allow\,deny\n allow from all\n DirectoryIndex index.php index.html\n </Directory>\n</VirtualHost>,' /etc/apache2/sites-available/000-default.conf \ | ||
&& echo "\nWEB_DIR=/var/www/html/metadata-qa/\n" >> /opt/metadata-qa-marc/common-variables | ||
|
||
ARG SOLR_VERSION=8.11.1 | ||
|
||
# install Solr | ||
RUN apt-get update \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters