<commit_before># docker build -t darktable/rawspeed .

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!! hub.docker.com will not auto-rebuild the image                        !!!
# !!! after making changes here, or if you just want to manually refresh    !!!
# !!! the image, you need to go to:                                         !!!
# https://hub.docker.com/r/darktable/rawspeed/~/settings/automated-builds/  !!!
# !!!                            and press the "Trigger" button.            !!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

FROM debian:testing
MAINTAINER <NAME> <<EMAIL>>

# needed at least for python-based jsonschema :(
# see https://github.com/Julian/jsonschema/issues/299
# and https://github.com/docker-library/python/issues/13
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV LC_MESSAGES C.UTF-8
ENV LANGUAGE C.UTF-8

ENV DEBIAN_FRONTEND noninteractive

# Paper over occasional network flakiness of some mirrors.
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80retry

# Do not install recommended packages
RUN echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/80recommends

# Do not install suggested packages
RUN echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/80suggests

# Assume yes
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/80forceyes

# Fix broken packages
RUN echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/80fixmissin

ENV GCC_VER=8
ENV LLVM_VER=6.0

# pls keep sorted :)
RUN rm -rf /var/lib/apt/lists/* && apt-get update && \
    apt-get install \
    clang++-$LLVM_VER clang-tidy-$LLVM_VER clang-tools-$LLVM_VER \
    cmake curl default-jdk-headless default-jre-headless dirmngr doxygen \
    g++-$GCC_VER git gnupg googletest graphviz libjpeg-dev libpugixml-dev \
    libxml2-utils make ninja-build python3-sphinx python3-sphinx-rtd-theme \
    unzip zlib1g-dev && apt-get clean && rm -rf /var/lib/apt/lists/*

# sonarqube support.

ENV SONAR_SCANNER_CLI_VERSION=3.1.0.1141-linux \
    SONARQUBE_HOME=/opt/sonarqube

RUN set -x \

    # pub   2048R/D26468DE 2015-05-25
    #       Key fingerprint = <KEY>
    # uid                  sonarsource_deployer (Sonarsource Deployer) <<EMAIL>>
    # sub   2048R/06855C1D 2015-05-25
    && gpg --keyserver keys.gnupg.net --recv-keys <KEY> \
    && cd /opt \
    && curl -o sonar-scanner-cli.zip -fSL https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_CLI_VERSION.zip \
    && curl -o sonar-scanner-cli.zip.asc -fSL https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_CLI_VERSION.zip.asc \
    && gpg --batch --verify sonar-scanner-cli.zip.asc sonar-scanner-cli.zip \
    && unzip sonar-scanner-cli.zip \
    && mv sonar-scanner-$SONAR_SCANNER_CLI_VERSION $SONARQUBE_HOME \
    && rm sonar-scanner-cli.zip* \
    && curl -o build-wrapper.zip -fSL https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip \
    && unzip build-wrapper.zip \
    && mv build-wrapper-linux-x86/* $SONARQUBE_HOME/bin \
    && rm build-wrapper.zip* \
    && rmdir build-wrapper-linux-x86

ENV PATH=$SONARQUBE_HOME/bin:$PATH

# i'd like to explicitly use ld.gold
# while it may be just immeasurably faster, it is known to cause more issues
# than traditional ld.bfd; plus, at this time, ld.gold seems like the future.
RUN dpkg-divert --add --rename --divert /usr/bin/ld.original /usr/bin/ld && \
    ln -s /usr/bin/ld.gold /usr/bin/ld
<commit_msg>[CI] Docker: attempt to fix/update sonarsource stuff.<commit_after># docker build -t darktable/rawspeed .

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!! hub.docker.com will not auto-rebuild the image                        !!!
# !!! after making changes here, or if you just want to manually refresh    !!!
# !!! the image, you need to go to:                                         !!!
# https://hub.docker.com/r/darktable/rawspeed/~/settings/automated-builds/  !!!
# !!!                            and press the "Trigger" button.            !!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

FROM debian:testing
MAINTAINER <NAME> <<EMAIL>>

# needed at least for python-based jsonschema :(
# see https://github.com/Julian/jsonschema/issues/299
# and https://github.com/docker-library/python/issues/13
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV LC_MESSAGES C.UTF-8
ENV LANGUAGE C.UTF-8

ENV DEBIAN_FRONTEND noninteractive

# Paper over occasional network flakiness of some mirrors.
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80retry

# Do not install recommended packages
RUN echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/80recommends

# Do not install suggested packages
RUN echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/80suggests

# Assume yes
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/80forceyes

# Fix broken packages
RUN echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/80fixmissin

ENV GCC_VER=8
ENV LLVM_VER=6.0

# pls keep sorted :)
RUN rm -rf /var/lib/apt/lists/* && apt-get update && \
    apt-get install \
    clang++-$LLVM_VER clang-tidy-$LLVM_VER clang-tools-$LLVM_VER \
    cmake curl default-jdk-headless default-jre-headless dirmngr doxygen \
    g++-$GCC_VER git gnupg googletest graphviz libjpeg-dev libpugixml-dev \
    libxml2-utils make ninja-build python3-sphinx python3-sphinx-rtd-theme \
    unzip zlib1g-dev && apt-get clean && rm -rf /var/lib/apt/lists/*

# sonarqube support.

ENV SONAR_SCANNER_CLI_VERSION=3.2.0.1227-linux \
    SONARQUBE_HOME=/opt/sonarqube

RUN set -x \

    # pub   2048R/D26468DE 2015-05-25
    #       Key fingerprint = <KEY>
    # uid                  sonarsource_deployer (Sonarsource Deployer) <<EMAIL>>
    # sub   2048R/06855C1D 2015-05-25
    && gpg --keyserver keys.gnupg.net --recv-keys <KEY> \
    && cd /opt \
    && curl -o sonar-scanner-cli.zip -fSL https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_CLI_VERSION.zip \
    && curl -o sonar-scanner-cli.zip.asc -fSL https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_CLI_VERSION.zip.asc \
    && gpg --batch --verify sonar-scanner-cli.zip.asc sonar-scanner-cli.zip \
    && unzip sonar-scanner-cli.zip \
    && mv sonar-scanner-$SONAR_SCANNER_CLI_VERSION $SONARQUBE_HOME \
    && rm sonar-scanner-cli.zip* \
    && curl -o build-wrapper.zip -fSL https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip \
    && unzip build-wrapper.zip \
    && mv build-wrapper-linux-x86/* $SONARQUBE_HOME/bin \
    && rm build-wrapper.zip* \
    && rmdir build-wrapper-linux-x86

ENV PATH=$SONARQUBE_HOME/bin:$PATH

# i'd like to explicitly use ld.gold
# while it may be just immeasurably faster, it is known to cause more issues
# than traditional ld.bfd; plus, at this time, ld.gold seems like the future.
RUN dpkg-divert --add --rename --divert /usr/bin/ld.original /usr/bin/ld && \
    ln -s /usr/bin/ld.gold /usr/bin/ld

{'fraction_non_alphanumeric': 0.17061812023708722, 'fraction_numerical': 0.021450747953711543, 'mean_word_length': 3.056668574699485, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, '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': '4841817', 'n_tokens_mistral': 2717, 'n_tokens_neox': 2538, 'n_words': 544}