<commit_before>ARG CUDA_TAG=9.2-devel
FROM nvidia/cuda:$CUDA_TAG
LABEL maintainer="AliceVision Team <EMAIL>"

# use CUDA_TAG to select the image version to use
# see https://hub.docker.com/r/nvidia/cuda/
#
# For example, to create a ubuntu 16.04 with cuda 8.0 for development, use
# docker build --build-arg CUDA_TAG=8.0-devel --tag popsift .
#
# then execute with nvidia docker (https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0))
# docker run -it --runtime=nvidia popsift


# OS/Version (FILE): cat /etc/issue.net
# Cuda version (ENV): $CUDA_VERSION

# System update
RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends\
        build-essential \
        wget \
        unzip \
        libtool \
        automake \
        libssl-dev \
        libpng12-dev \
        libjpeg-turbo8-dev \
        libdevil-dev \
        libboost-filesystem-dev \
        libboost-system-dev \
        libboost-program-options-dev \
        libboost-thread-dev \
 && rm -rf /var/lib/apt/lists/*
 
 # Manually install cmake
WORKDIR /tmp/cmake
RUN wget https://cmake.org/files/v3.17/cmake-3.17.1.tar.gz && \
    tar zxvf cmake-3.17.1.tar.gz && \
    cd cmake-3.17.1 && \
    ./bootstrap --prefix=/usr/local  -- -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_USE_OPENSSL:BOOL=ON && \
    make -j2 install && \
    cd /tmp && \
    rm -rf cmake

COPY . /opt/popsift
WORKDIR /opt/popsift/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release && make install -j 2<commit_msg>[docker] do not use cd<commit_after>ARG CUDA_TAG=9.2-devel
FROM nvidia/cuda:$CUDA_TAG
LABEL maintainer="AliceVision Team <EMAIL>"

# use CUDA_TAG to select the image version to use
# see https://hub.docker.com/r/nvidia/cuda/
#
# For example, to create a ubuntu 16.04 with cuda 8.0 for development, use
# docker build --build-arg CUDA_TAG=8.0-devel --tag popsift .
#
# then execute with nvidia docker (https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0))
# docker run -it --runtime=nvidia popsift


# OS/Version (FILE): cat /etc/issue.net
# Cuda version (ENV): $CUDA_VERSION

# System update
RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends\
        build-essential \
        wget \
        unzip \
        libtool \
        automake \
        libssl-dev \
        libpng12-dev \
        libjpeg-turbo8-dev \
        libdevil-dev \
        libboost-filesystem-dev \
        libboost-system-dev \
        libboost-program-options-dev \
        libboost-thread-dev \
 && rm -rf /var/lib/apt/lists/*
 
 # Manually install cmake
WORKDIR /tmp/cmake
RUN wget https://cmake.org/files/v3.17/cmake-3.17.1.tar.gz && \
    tar zxvf cmake-3.17.1.tar.gz
WORKDIR /tmp/cmake/cmake-3.17.1
RUN ./bootstrap --prefix=/usr/local  -- -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_USE_OPENSSL:BOOL=ON && \
    make -j2 install
WORKDIR /tmp
RUN rm -rf cmake

COPY . /opt/popsift
WORKDIR /opt/popsift/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release && make install -j 2
{'fraction_non_alphanumeric': 0.1325503355704698, 'fraction_numerical': 0.021476510067114093, 'mean_word_length': 2.498826291079812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '1711799', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1061, 'n_words': 245}