<commit_before>FROM islandora-claw/base
MAINTAINER <NAME> <<EMAIL>>

LABEL "Description"="Islandora CLAW: Kitchen sink" \
      "License"="GPLv3" \
      "Version"="0.0.1"

EXPOSE 80
EXPOSE 8080
EXPOSE 8181
EXPOSE 3306

ENV TERM=xterm

##############################
# Common Packages & devtools #
##############################
RUN apk-install git zsh vim bash the_silver_searcher && \
    cleanup

##########
# Apache #
##########
RUN apk-install apache2 apache2-utils apache2-proxy && \
    mkdir /run/apache2 && \
    chown -R apache:apache /var/www && \
    chmod 2775 /var/www/localhost && \
    cleanup

###########
# MariaDB #
###########
RUN apk-install mariadb mysql-client && \
    mkdir /run/mysqld && \
    chown mysql:mysql /run/mysqld && \
    cleanup

#################
# Java Open JDK #
#################
ENV JAVA_HOME=/usr/lib/jvm/default-jvm

RUN apk-install openjdk8 && \
    cleanup

#########
# Maven #
#########
ARG MAVEN_VERSION="3.3.9"

ENV M2_HOME=/opt/maven \
    PATH=${PATH}:/opt/maven/bin

RUN curl -L http://ftp.ps.pl/pub/apache/maven/maven-${MAVEN_VERSION%%.*}/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz | \
    tar -xzf - -C /opt && \
    mv /opt/apache-maven-${MAVEN_VERSION} ${M2_HOME}

##########
# Tomcat #
##########
ARG TOMCAT_VERSION="7.0.68"

ENV CATALINA_HOME=/opt/tomcat \
    CATALINA_BASE=/opt/tomcat \
    CATALINA_OPTS="-server -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom" \
    PATH=${PATH}:/opt/tomcat/bin

RUN addgroup tomcat && \
    adduser -s /sbin/nologin -G tomcat -SDH -h ${CATALINA_HOME} tomcat

RUN curl -L http://ftp.ps.pl/pub/apache/tomcat/tomcat-${TOMCAT_VERSION%%.*}/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz | \
    tar -xzf - -C /tmp && \
    mv /tmp/apache-tomcat-${TOMCAT_VERSION} ${CATALINA_HOME} && \
    rm -rf ${CATALINA_HOME}/webapps/docs && \
    rm -rf ${CATALINA_HOME}/webapps/examples && \
    cleanup

##########
# Fedora #
##########
ARG FEDORA_VERSION="4.4.0"

ENV FEDORA_HOME="/mnt/fedora-data" \
    CATALINA_OPTS="${CATALINA_OPTS} -Dfcrepo.home=/mnt/fedora-data"

RUN mkdir -p ${FEDORA_HOME} && \
    chown tomcat:tomcat ${FEDORA_HOME} && \
    curl -o ${CATALINA_BASE}/webapps/fcrepo.war \
    -L https://github.com/fcrepo4/fcrepo4/releases/download/fcrepo-${FEDORA_VERSION}/fcrepo-webapp-${FEDORA_VERSION}.war && \
    mkdir ${CATALINA_BASE}/webapps/fcrepo && \
    unzip -o ${CATALINA_BASE}/webapps/fcrepo.war -d ${CATALINA_HOME}/webapps/fcrepo && \
    rm -rf ${CATALINA_HOME}/webapps/*.war && \
    cleanup

##############
# Blazegraph #
##############
ARG BLAZEGRAPH_VERSION="1.5.1"

ENV CATALINA_OPTS="${CATALINA_OPTS} -Dcom.bigdata.rdf.sail.webapp.ConfigParams.propertyFile=${CATALINA_BASE}/webapps/bigdata/WEB-INF/RWStore.properties"

RUN curl -o ${CATALINA_BASE}/webapps/bigdata.war \
    -L http://sourceforge.net/projects/bigdata/files/bigdata/${BLAZEGRAPH_VERSION}/bigdata.war/download && \
    mkdir ${CATALINA_BASE}/webapps/bigdata && \
    unzip -o ${CATALINA_BASE}/webapps/bigdata.war -d ${CATALINA_HOME}/webapps/bigdata && \
    rm -rf ${CATALINA_HOME}/webapps/*.war && \
    mkdir /opt/blazegraph && \
    chown tomcat:tomcat /opt/blazegraph && \
    cleanup<commit_msg>Address #291; Use fcrepo-webapp-plus instead of fcrepo-webapp.<commit_after>FROM islandora-claw/base
MAINTAINER <NAME> <<EMAIL>>

LABEL "Description"="Islandora CLAW: Kitchen sink" \
      "License"="GPLv3" \
      "Version"="0.0.1"

EXPOSE 80
EXPOSE 8080
EXPOSE 8181
EXPOSE 3306

ENV TERM=xterm

##############################
# Common Packages & devtools #
##############################
RUN apk-install git zsh vim bash the_silver_searcher && \
    cleanup

##########
# Apache #
##########
RUN apk-install apache2 apache2-utils apache2-proxy && \
    mkdir /run/apache2 && \
    chown -R apache:apache /var/www && \
    chmod 2775 /var/www/localhost && \
    cleanup

###########
# MariaDB #
###########
RUN apk-install mariadb mysql-client && \
    mkdir /run/mysqld && \
    chown mysql:mysql /run/mysqld && \
    cleanup

#################
# Java Open JDK #
#################
ENV JAVA_HOME=/usr/lib/jvm/default-jvm

RUN apk-install openjdk8 && \
    cleanup

#########
# Maven #
#########
ARG MAVEN_VERSION="3.3.9"

ENV M2_HOME=/opt/maven \
    PATH=${PATH}:/opt/maven/bin

RUN curl -L http://ftp.ps.pl/pub/apache/maven/maven-${MAVEN_VERSION%%.*}/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz | \
    tar -xzf - -C /opt && \
    mv /opt/apache-maven-${MAVEN_VERSION} ${M2_HOME}

##########
# Tomcat #
##########
ARG TOMCAT_VERSION="7.0.68"

ENV CATALINA_HOME=/opt/tomcat \
    CATALINA_BASE=/opt/tomcat \
    CATALINA_OPTS="-server -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom" \
    PATH=${PATH}:/opt/tomcat/bin

RUN addgroup tomcat && \
    adduser -s /sbin/nologin -G tomcat -SDH -h ${CATALINA_HOME} tomcat

RUN curl -L http://ftp.ps.pl/pub/apache/tomcat/tomcat-${TOMCAT_VERSION%%.*}/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz | \
    tar -xzf - -C /tmp && \
    mv /tmp/apache-tomcat-${TOMCAT_VERSION} ${CATALINA_HOME} && \
    rm -rf ${CATALINA_HOME}/webapps/docs && \
    rm -rf ${CATALINA_HOME}/webapps/examples && \
    cleanup

##########
# Fedora #
##########
ARG FEDORA_VERSION="4.4.0"

ENV FEDORA_HOME="/mnt/fedora-data" \
    CATALINA_OPTS="${CATALINA_OPTS} -Dfcrepo.home=/mnt/fedora-data"

RUN mkdir -p ${FEDORA_HOME} && \
    chown tomcat:tomcat ${FEDORA_HOME} && \
    curl -o ${CATALINA_BASE}/webapps/fcrepo.war \
    -L https://github.com/fcrepo4-exts/fcrepo-webapp-plus/releases/download/fcrepo-webapp-plus-${FEDORA_VERSION}/fcrepo-webapp-plus${FEDORA_VERSION}.war && \
    mkdir ${CATALINA_BASE}/webapps/fcrepo && \
    unzip -o ${CATALINA_BASE}/webapps/fcrepo.war -d ${CATALINA_HOME}/webapps/fcrepo && \
    rm -rf ${CATALINA_HOME}/webapps/*.war && \
    cleanup

##############
# Blazegraph #
##############
ARG BLAZEGRAPH_VERSION="1.5.1"

ENV CATALINA_OPTS="${CATALINA_OPTS} -Dcom.bigdata.rdf.sail.webapp.ConfigParams.propertyFile=${CATALINA_BASE}/webapps/bigdata/WEB-INF/RWStore.properties"

RUN curl -o ${CATALINA_BASE}/webapps/bigdata.war \
    -L http://sourceforge.net/projects/bigdata/files/bigdata/${BLAZEGRAPH_VERSION}/bigdata.war/download && \
    mkdir ${CATALINA_BASE}/webapps/bigdata && \
    unzip -o ${CATALINA_BASE}/webapps/bigdata.war -d ${CATALINA_HOME}/webapps/bigdata && \
    rm -rf ${CATALINA_HOME}/webapps/*.war && \
    mkdir /opt/blazegraph && \
    chown tomcat:tomcat /opt/blazegraph && \
    cleanup
{'fraction_non_alphanumeric': 0.22069278475268492, 'fraction_numerical': 0.013613674179397973, 'mean_word_length': 3.591666666666667, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3971072', 'n_tokens_mistral': 2788, 'n_tokens_neox': 2567, 'n_words': 375}