<commit_before>FROM dockerfile/java:oracle-java8

ENV MAVEN_VERSION 3.2.5
RUN curl -sSL http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \
  && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
  && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn

ENV MAVEN_HOME /usr/share/maven

RUN mkdir /app /build
WORKDIR /app

RUN git clone https://github.com/robbi5/s3ninja.git /build && \
    cd /build && \
    git checkout s3-root && \
    sed -i '0,/<version>/{s#<version>2.0</version>#<version>2.0-SNAPSHOT</version>#}' /build/pom.xml && \
    mvn compile package && \
    cd /app && unzip /build/target/*.zip && \
    chmod +x sirius.sh

RUN sed -i 's#baseDir = "data/s3"#baseDir = "/data"#' /app/app/application.conf

VOLUME /data

#CMD java -server -Xmx1024m -Djava.net.preferIPv4Stack=true IPL
CMD /app/sirius.sh start && tail -F /app/logs/stdout.txt
<commit_msg>s3ninja should not autocreate buckets<commit_after>FROM dockerfile/java:oracle-java8

ENV MAVEN_VERSION 3.2.5
RUN curl -sSL http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \
  && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
  && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn

ENV MAVEN_HOME /usr/share/maven

RUN mkdir /app /build
WORKDIR /app

RUN git clone https://github.com/robbi5/s3ninja.git /build && \
    cd /build && \
    git checkout s3-root && \
    sed -i '0,/<version>/{s#<version>2.0</version>#<version>2.0-SNAPSHOT</version>#}' /build/pom.xml && \
    mvn compile package && \
    cd /app && unzip /build/target/*.zip && \
    chmod +x sirius.sh

RUN sed -i 's#baseDir = "data/s3"#baseDir = "/data"#' -i 's#autocreateBuckets = true#autocreateBuckets = false#' /app/app/application.conf

VOLUME /data

#CMD java -server -Xmx1024m -Djava.net.preferIPv4Stack=true IPL
CMD /app/sirius.sh start && tail -F /app/logs/stdout.txt

{'fraction_non_alphanumeric': 0.17059708981435023, 'fraction_numerical': 0.019568489713998997, 'mean_word_length': 3.154166666666667, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1521822', 'n_tokens_mistral': 850, 'n_tokens_neox': 801, 'n_words': 156}