<commit_before>FROM php:7.1-fpm

LABEL com.example.vendor="pinoniq" \
      version="1.3"

MAINTAINER Jeroen "pinoniq" Meeus

# Copy our ini file
COPY ./conf/local.ini /usr/local/etc/php/conf.d/local.ini

# Set timezone
RUN rm /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Brussels /etc/localtime && "date"

# install some basic tools
RUN apt-get update && apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libmcrypt-dev \
        libpng12-dev \
        unzip \
        mysql-client \
        unzip \
        git \
    && docker-php-ext-install -j$(nproc) iconv mcrypt \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) gd \
    && docker-php-ext-install pdo pdo_mysql

# Install xdebug
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.idekey=\"PHPSTORM\"" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_port=9001" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \

# Now we have that we need, we continue installing some usefull cli tools
## composer
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

## Symfony installer
RUN curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony \
    && chmod a+x /usr/local/bin/symfony

# add some useful symfony shortcuts
RUN echo 'alias dev="php bin/console --env=dev"' >> ~/.bashrc \
&& echo 'alias prod="php bin/console --env=prod"' >> ~/.bashrc

WORKDIR /var/www
<commit_msg>Fixed an issue that was blocking the installation of xdebug and all required compontens<commit_after>FROM php:7.1-fpm

LABEL com.example.vendor="pinoniq" \
      version="1.3"

MAINTAINER Jeroen "pinoniq" Meeus

# Copy our ini file
COPY ./conf/local.ini /usr/local/etc/php/conf.d/local.ini

# Set timezone
RUN rm /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Brussels /etc/localtime && "date"

# install some basic tools
RUN apt-get update && apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libmcrypt-dev \
        libpng12-dev \
        unzip \
        mysql-client \
        unzip \
        git \
    && docker-php-ext-install -j$(nproc) iconv mcrypt \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) gd \
    && docker-php-ext-install pdo pdo_mysql

# Install xdebug
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.idekey=\"PHPSTORM\"" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_port=9001" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

# Now we have that we need, we continue installing some usefull cli tools
## composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
    && php composer-setup.php \
    && php -r "unlink('composer-setup.php');" \
    && mv composer.phar /usr/local/bin/composer

## Drush
RUN php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush \
    && chmod +x drush \
    && mv drush /usr/local/bin

## Symfony installer
RUN curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony \
    && chmod a+x /usr/local/bin/symfony

# add some useful symfony shortcuts
RUN echo 'alias dev="php bin/console --env=dev"' >> ~/.bashrc \
&& echo 'alias prod="php bin/console --env=prod"' >> ~/.bashrc

WORKDIR /var/www

{'fraction_non_alphanumeric': 0.16139809817527628, 'fraction_numerical': 0.00796710357234644, 'mean_word_length': 2.8764940239043826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 28, 'https://': 5, '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': '1107916', 'n_tokens_mistral': 1493, 'n_tokens_neox': 1427, 'n_words': 293}