This repository has been archived by the owner on Oct 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-Qucosa-Fcrepo3
64 lines (52 loc) · 2.7 KB
/
Dockerfile-Qucosa-Fcrepo3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM tomcat:8
ARG fcrepo_version=3.8.1
WORKDIR /apps
# Downloading applications, making use of RUN cache for each file
RUN wget -nv "https://github.com/fcrepo3/fcrepo/releases/download/v${fcrepo_version}/fcrepo-installer-${fcrepo_version}.jar"
RUN wget -nv "https://github.com/qucosa/qucosa-fcrepo-dcdisseminator/releases/download/v1.1.7/qucosa-fcrepo-dcdisseminator-1.1.7.war"
RUN wget -nv "https://github.com/qucosa/qucosa-fcrepo-epicurdisseminator/releases/download/v1.1.5/qucosa-epicurdisseminator-1.1.5.war"
RUN wget -nv "https://github.com/qucosa/qucosa-fcrepo-metsdisseminator/releases/download/v2.2.0/qucosa-metsdisseminator-2.2.0.war"
RUN wget -nv "https://github.com/qucosa/qucosa-fcrepo-winibwppn/releases/download/v1.1.0/qucosa-fcrepo-winibwppn-1.1.0.war"
RUN wget -nv "https://github.com/qucosa/qucosa-fcrepo-xmetadissplus/releases/download/v1.3.0/qucosa-fcrepo-xmetadissplus-1.3.0.war"
RUN wget -nv "https://github.com/qucosa/qucosa-fcrepo-zipdisseminator/releases/download/v1.1.0/qucosa-fcrepo-zipdisseminator-1.1.0.war"
RUN wget -nv "https://github.com/qucosa/sword-fedora/releases/download/v1.6.4/sword-fedora-1.6.4.war"
RUN wget -nv "https://github.com/qucosa/qucosa-sword-filehandler/releases/download/v1.4.5/qucosa-sword-filehandler-1.4.5.jar"
COPY install.properties install.properties
ENV FEDORA_HOME /fcrepo3
RUN java -jar fcrepo-installer-${fcrepo_version}.jar install.properties && \
rm fcrepo-installer-${fcrepo_version}.jar install.properties
COPY log4j.xml .
COPY properties.xml .
WORKDIR /usr/local/tomcat
COPY tomcat-users.xml conf/
COPY saxon.war webapps/
RUN rm -rf webapps/examples webapps/docs webapps/host-manager
WORKDIR /ingest
RUN wget -nv "https://github.com/qucosa/qucosa-fcrepo-contentmodel/archive/v1.2.6.tar.gz" \
-O qucosa-fcrepo-contentmodel-1.2.6.tar.gz
RUN tar -xf qucosa-fcrepo-contentmodel-1.2.6.tar.gz
RUN /usr/local/tomcat/bin/catalina.sh start && sleep 3 && \
while ! curl -Ssf "http://localhost:8080/fedora/describe" -o /dev/null; do sleep 2; done && \
for f in qucosa-fcrepo-contentmodel-1.2.6/objects/*xml; do \
curl -Ss -XPOST -ufedoraAdmin:fedoraAdmin -H'Content-Type:text/xml' \
--data-binary @$f \
"http://localhost:8080/fedora/objects/new?format=info:fedora/fedora-system:FOXML-1.1&ignoreMime=true"; \
echo; \
done && \
/usr/local/tomcat/bin/catalina.sh stop && sleep 1
RUN cd / && rm -rf /ingest
WORKDIR /usr/local/tomcat/conf/Catalina/localhost
COPY manager.xml .
COPY dc.xml .
COPY epicur.xml .
COPY mets.xml .
COPY saxon.war .
COPY sword.xml .
COPY winibwppn.xml .
COPY xmetadissplus.xml .
COPY zip.xml .
WORKDIR /usr/local/tomcat
VOLUME ["/fcrepo3/data"]
EXPOSE 8080
EXPOSE 61616
CMD ["bin/catalina.sh", "run"]