<commit_before>ARG IMAGE_REPO
FROM ${IMAGE_REPO:-lagoon}/commons as commons

ENV MARIADB_DATABASE=infrastructure \
    MARIADB_USER=api \
    MARIADB_PASSWORD=<PASSWORD>

# COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d/

RUN   apk add --update --no-cache --virtual .mariadb-run-deps \
        libaio \
        libstdc++ \
        cmake \
        sudo \
        wget \
        git \
        mysql \
        libuuid \
        tzdata && \
    apk add --update --no-cache --virtual .mariadb-build-deps \
        attr \
        sqlite-dev sqlite \
        musl-dev \
        autoconf \
        bison \
        build-base bison flex \
        coreutils \
        libaio-dev \
        util-linux-dev \
        linux-headers \
        openssl \
        openssl-dev \
        tcl tcl-dev \
        linux-headers \
        ncurses-dev \
        curl \
        curl-dev \
        patch \
        readline-dev \
        zlib-dev




RUN cd /tmp; git clone https://github.com/mariadb-corporation/MaxScale.git maxscale; cd /tmp/; mkdir build; cd build; cmake ../maxscale -DBUILD_TESTS=Y -DWITH_SCRIPTS=N

RUN echo "#define _UTSNAME_SYSNAME_LENGTH 65 >> /usr/include/sys/utsname.h"
RUN cd /tmp/build; make<commit_msg>additional libraries for build.<commit_after>ARG IMAGE_REPO
FROM ${IMAGE_REPO:-lagoon}/commons as commons

ENV MARIADB_DATABASE=infrastructure \
    MARIADB_USER=api \
    MARIADB_PASSWORD=<PASSWORD>

# COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d/

RUN   apk add --update --no-cache --virtual .mariadb-run-deps \
        libaio \
        libstdc++ \
        cmake \
        sudo \
        wget \
        git \
        mysql \
        gnutls \
        libgcrypt \
        libuuid \
        tzdata && \
    apk add --update --no-cache --virtual .mariadb-build-deps \
        attr \
        sqlite-dev sqlite \
        musl-dev \
        autoconf \
        bison \
        build-base bison flex \
        coreutils \
        libaio-dev \
        util-linux-dev \
        linux-headers \
        openssl \
        openssl-dev \
        tcl tcl-dev \
        libgcrypt-dev \
        linux-headers \
        ncurses-dev \
        gnutls-dev \
        curl \
        curl-dev \
        patch \
        readline-dev \
        zlib-dev




RUN cd /tmp; git clone https://github.com/mariadb-corporation/MaxScale.git maxscale; cd /tmp/; mkdir build; cd build; cmake ../maxscale -DBUILD_TESTS=Y -DWITH_SCRIPTS=N

RUN echo "#define _UTSNAME_SYSNAME_LENGTH 65 >> /usr/include/sys/utsname.h"
RUN cd /tmp/build; make
{'fraction_non_alphanumeric': 0.10607255520504733, 'fraction_numerical': 0.0015772870662460567, 'mean_word_length': 1.5395395395395395, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5189497', 'n_tokens_mistral': 909, 'n_tokens_neox': 867, 'n_words': 178}