Commit b1ef1ee8 authored by Guillaume Mella's avatar Guillaume Mella

unused I guess

parent 3898a941
FROM openjdk:8-jdk-slim as builder
ARG SVN_TAG
ENV MVN mvn -Dassembly.skipAssembly -Djarsigner.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.skip=true
RUN mkdir -p /usr/share/man/man1 && apt-get update && apt-get install -y --no-install-recommends \
git \
maven \
python-psycopg2 \
subversion
WORKDIR /tmp
RUN svn export https://svn.jmmc.fr/jmmc-web/tags/$SVN_TAG/exist/
WORKDIR /tmp/exist
RUN svn export https://svn.jmmc.fr/jmmc-sw/MCS/tags/$SVN_TAG/jmcs build/deps/jmcs &&\
svn export https://svn.jmmc.fr/jmmc-sw/MCS/tags/$SVN_TAG/jmal build/deps/jmal &&\
svn export https://svn.jmmc.fr/jmmc-sw/oiTools/tags/$SVN_TAG/ build/deps/oiTools &&\
git clone https://github.com/JMMC-OpenDev/OITools.git build/deps/oitools &&\
rm -rf build/deps/oiTools/oitools &&\
mv build/deps/oitools build/deps/oiTools
WORKDIR /tmp/exist/build/deps
RUN mvn install:install-file -Dfile=../../tap_1.1b.jar -DgroupId=cds.taplib -DartifactId=taplib -Dversion=1.1b -Dpackaging=jar
WORKDIR /tmp/exist/build/deps/jmcs/parent-pom
RUN $MVN install
WORKDIR /tmp/exist/
RUN mvn process-resources
RUN sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-*-openjdk/accessibility.properties
RUN $MVN install &&\
ant
FROM existdb/existdb:4.7.0
ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF-8 -Djava.awt.headless=true -Dorg.exist.db-connection.cacheSize=256M -Dorg.exist.db-connection.pool.max=20 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:+UseG1GC -XX:+UseStringDeduplication -Xms1G -Xmx2G
COPY --from=builder /tmp/exist/build/*.jar $EXIST_HOME/lib/user/
COPY --from=builder /tmp/exist/build/exist-security-jmmc.jar $EXIST_HOME/lib/extensions/
ADD http://exist-db.org/exist/apps/public-repo/public/expath-ft-client-exist-lib-1.1.6.xar $EXIST_HOME/autodeploy/
COPY --from=builder /tmp/exist/build/jmmc-realm-*.xar /tmp/exist/build/jmmc-resources-*.xar $EXIST_HOME/autodeploy/
COPY --from=builder /tmp/exist/build/oidb-data*.xar $EXIST_HOME/autodeploy/
COPY --from=builder /tmp/exist/build/oidb-1.*.xar $EXIST_HOME/autodeploy/zz_oidb.xar
COPY conf.xml $EXIST_HOME/config/conf.xml
COPY controller-config.xml $EXIST_HOME/config/controller-config.xml
COPY web.xml $EXIST_HOME/webapp/WEB-INF/web.xml
COPY jetty.xml $EXIST_HOME/tools/jetty/etc/jetty.xml
COPY log4j2.xml $EXIST_HOME/config/log4j2.xml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment