<commit_before>FROM php:5.6-apache
MAINTAINER Madoma73

# confs eeodmus
ENV eedomus_apiuser=api\ user\
    eedomus_apisecret=very\ secret\ 
    eedomus_adressip=192.168.1.1

# conf DB
ENV DbHost=192.168.10.10\
    DbPort=3306\
    DbSchema=domodata\
    DbLogin=domodata\
    DbPassword=<PASSWORD>
    
# environnement
ENV EnvPlatform=PROD\
	EnvUpdate=TRUE\
    EnvVirt=DOCKER \
    DelayBetweenApiCalls=2\
    TERM=vt100

# install needed packages and cleanup in the same layer
RUN apt-get update && apt-get install -y \
      apt-utils \
      vim \
      net-tools \
      git \
      libmcrypt-dev\
      libxslt-dev\
      php5-mcrypt\
      wget\
      zlibc\
      zlib1g-dev\
    &&  docker-php-ext-install pdo_mysql \
    &&  docker-php-ext-install mcrypt \
    &&  docker-php-ext-install xsl \
    &&  docker-php-ext-install zip \
    &&  apt-get clean autoclean \
    &&  apt-get autoremove -y \
    &&  rm -rf /var/lib/{apt,dpkg,cache,log}/ \
    &&  rm -rf /var/lib/apt/lists/*

# apache/php configuration
RUN a2enmod rewrite\
     && php5enmod mcrypt

#ADD sources /var/www/html/.
# Get sources from GitHub
RUN mkdir /DomodataGit \
    && cd /DomodataGit \
    && git clone "https://github.com/ppollet73/domotique_data.git" \
    && cd /DomodataGit/domotique_data/DomoData \
    && cp -R -f . /var/www/html/. \
    && mkdir /var/www/html/xml \
    && chown -R www-data:www-data /var/www/html/xml

## configure PHP env
WORKDIR /var/www/html
RUN wget http://getcomposer.org/composer.phar
RUN php composer.phar self-update
RUN php composer.phar install

#Configure Log
RUN mkdir /var/log/Domodata
RUN chown www-data:www-data /var/log/Domodata

#Replace apache startup script to update Domodata
COPY ./apache2-foreground /usr/local/bin/
RUN chmod +x /usr/local/bin/apache2-foreground

EXPOSE 80<commit_msg>Typo correction<commit_after>FROM php:5.6-apache
MAINTAINER Madoma73

# install needed packages and cleanup in the same layer
RUN apt-get update && apt-get install -y \
      apt-utils \
      vim \
      net-tools \
      git \
      libmcrypt-dev\
      libxslt-dev\
      php5-mcrypt\
      wget\
      zlibc\
      zlib1g-dev\
    &&  docker-php-ext-install pdo_mysql \
    &&  docker-php-ext-install mcrypt \
    &&  docker-php-ext-install xsl \
    &&  docker-php-ext-install zip \
    &&  apt-get clean autoclean \
    &&  apt-get autoremove -y \
    &&  rm -rf /var/lib/{apt,dpkg,cache,log}/ \
    &&  rm -rf /var/lib/apt/lists/*

# apache/php configuration
RUN a2enmod rewrite\
     && php5enmod mcrypt

# confs eedomus
ENV eedomus_apiuser=api\ user\
    eedomus_apisecret=very\ secret\ 
    eedomus_adressip=192.168.1.1

# conf DB
ENV DbHost=192.168.10.111\
    DbPort=3306\
    DbSchema=domodata\
    DbLogin=domodata\
    DbPassword=<PASSWORD>
    
# environnement
ENV EnvPlatform=PROD\
    EnvUpdate=TRUE\
    EnvVirt=DOCKER \
    DelayBetweenApiCalls=2\
    TERM=vt100

#ADD sources /var/www/html/.
# Get sources from GitHub
RUN mkdir /DomodataGit \
    && cd /DomodataGit \
    && git clone "https://github.com/ppollet73/domotique_data.git" \
    && cd /DomodataGit/domotique_data/DomoData \
    && cp -R -f . /var/www/html/. \
    && mkdir /var/www/html/xml \
    && chown -R www-data:www-data /var/www/html/xml

## configure PHP env
WORKDIR /var/www/html
RUN wget http://getcomposer.org/composer.phar
RUN php composer.phar self-update
RUN php composer.phar install

#Configure Log
RUN mkdir /var/log/Domodata
RUN chown www-data:www-data /var/log/Domodata

#Replace apache startup script to update Domodata
COPY ./apache2-foreground /usr/local/bin/
RUN chmod +x /usr/local/bin/apache2-foreground

EXPOSE 80
{'fraction_non_alphanumeric': 0.12204507971412865, 'fraction_numerical': 0.022264980758658605, 'mean_word_length': 2.502406159769009, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 18, 'xml': 4}, 'pii_count': 4, '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': '1907828', 'n_tokens_mistral': 1478, 'n_tokens_neox': 1373, 'n_words': 294}