<commit_before>FROM ubuntu:18.04
LABEL org.label-schema.schema-version = "1.0.0-rc.1"   \
      org.label-schema.name           = "Asqtasun SNAPSHOT - WebApp (Ubuntu 18.04 - Java 8)"
          # ----> documentation  http://label-schema.org/
################################################################################################################

# Environment variables
ENV    WWWPORT="8080"                        \
       DB_PORT="3306"                        \
       DB_HOST="asqatasun-db_dev"            \
       DB_NAME="asqatasun"                   \
       ASQA_RELEASE="5.0-SNAPSHOT"           \
       LOG_DIR="/var/log/asqatasun/"         \
       FIREFOX_VERSION="68.9.0esr"           \
       GECKODRIVER_VERSION="v0.26.0"         \    
       FIREFOX_URL_PREFIX="https://download-installer.cdn.mozilla.net/pub/firefox/releases/"  \
       GECKODRIVER_URL_PREFIX="https://github.com/mozilla/geckodriver/releases/download/" 
ENV    ASQA_URL="http://localhost:${WWWPORT}/"
EXPOSE ${WWWPORT}

# Build variables
ARG FIREFOX_URL="${FIREFOX_URL_PREFIX}${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2"
ARG GECKODRIVER_URL="${GECKODRIVER_URL_PREFIX}${GECKODRIVER_VERSION}/geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz"
ARG WAR_FILE="asqatasun-web-app-${ASQA_RELEASE}.war"

################################################################################################################

# System prerequisites
RUN apt-get update                    && \
    apt-get -y --no-install-recommends   \
            install openjdk-8-jre        \
                    libgtk-3-0           \
                    libdbus-glib-1-2     \
                    wget                 \
                    curl

# Asqatasun prerequisites
RUN cd /opt                                                     && \
    echo ${FIREFOX_URL}                                         && \
    wget ${FIREFOX_URL}                                         && \
    wget ${GECKODRIVER_URL}                                     && \
    tar xvf "firefox-${FIREFOX_VERSION}.tar.bz2"                && \
    tar xvf "geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz"
<commit_msg>CHORE(docker): use Firefox ESR 68.12 instead off 68.9<commit_after>FROM ubuntu:18.04
LABEL org.label-schema.schema-version = "1.0.0-rc.1"   \
      org.label-schema.name           = "Asqtasun SNAPSHOT - WebApp (Ubuntu 18.04 - Java 8)"
          # ----> documentation  http://label-schema.org/
################################################################################################################

# Environment variables
ENV    WWWPORT="8080"                        \
       DB_PORT="3306"                        \
       DB_HOST="asqatasun-db_dev"            \
       DB_NAME="asqatasun"                   \
       ASQA_RELEASE="5.0-SNAPSHOT"           \
       LOG_DIR="/var/log/asqatasun/"         \
       FIREFOX_VERSION="68.12.0esr"           \
       GECKODRIVER_VERSION="v0.26.0"         \    
       FIREFOX_URL_PREFIX="https://download-installer.cdn.mozilla.net/pub/firefox/releases/"  \
       GECKODRIVER_URL_PREFIX="https://github.com/mozilla/geckodriver/releases/download/" 
ENV    ASQA_URL="http://localhost:${WWWPORT}/"
EXPOSE ${WWWPORT}

# Build variables
ARG FIREFOX_URL="${FIREFOX_URL_PREFIX}${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2"
ARG GECKODRIVER_URL="${GECKODRIVER_URL_PREFIX}${GECKODRIVER_VERSION}/geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz"
ARG WAR_FILE="asqatasun-web-app-${ASQA_RELEASE}.war"

################################################################################################################

# System prerequisites
RUN apt-get update                    && \
    apt-get -y --no-install-recommends   \
            install openjdk-8-jre        \
                    libgtk-3-0           \
                    libdbus-glib-1-2     \
                    wget                 \
                    curl

# Asqatasun prerequisites
RUN cd /opt                                                     && \
    echo ${FIREFOX_URL}                                         && \
    wget ${FIREFOX_URL}                                         && \
    wget ${GECKODRIVER_URL}                                     && \
    tar xvf "firefox-${FIREFOX_VERSION}.tar.bz2"                && \
    tar xvf "geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz"

{'fraction_non_alphanumeric': 0.2111589929689272, 'fraction_numerical': 0.022680880018144705, 'mean_word_length': 1.728960396039604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6327528', 'n_tokens_mistral': 1436, 'n_tokens_neox': 1317, 'n_words': 149}