<commit_before>FROM ilios/source:v3.40.0

MAINTAINER Ilios Project Team <<EMAIL>>

RUN apk add --update \
    curl \
    tar \
    php7 \
    php7-fpm \
    php7-apcu \
    php7-dom \
    php7-json \
    php7-ldap \
    php7-opcache \
    php7-openssl \
    php7-pdo \
    php7-pdo_mysql \
    php7-xml \
    php7-xmlreader \
    php7-curl \
    php7-zlib \
    php7-phar \
    php7-mbstring \
    php7-session \
    php7-ctype

RUN ln -s /usr/bin/php7 /usr/bin/php
RUN ln -s /usr/sbin/php-fpm7 /usr/sbin/php-fpm
RUN rm -rf /var/cache/apk/* && rm -rf /tmp/*

ADD ilios.ini /etc/php7/fpm/conf.d/
ADD ilios.ini /etc/php7/cli/conf.d/
ADD php-fpm.conf /etc/php7/

VOLUME /data
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

ENV COMPOSER_HOME=/tmp \
  SYMFONY_ENV=prod \
  ILIOS_API_ENVIRONMENT=prod \
  ILIOS_API_DEBUG=false \
  ILIOS_DATABASE_DRIVER=pdo_mysql \
  ILIOS_DATABASE_HOST=db \
  ILIOS_DATABASE_PORT=~ \
  ILIOS_DATABASE_NAME=ilios \
  ILIOS_DATABASE_USER=ilios \
  ILIOS_DATABASE_PASSWORD=ilios \
  ILIOS_DATABASE_MYSQL_VERSION=5.7 \
  ILIOS_MAILER_TRANSPORT=smtp \
  ILIOS_MAILER_HOST=127.0.0.1 \
  ILIOS_MAILER_USER=~ \
  ILIOS_MAILER_PASSWORD=~ \
  ILIOS_LOCALE=en \
  ILIOS_SECRET=ThisTokenIsNotSoSecretChangeIt \
  ILIOS_AUTHENTICATION_TYPE=form \
  ILIOS_LEGACY_PASSWORD_SALT=null \
  ILIOS_FILE_SYSTEM_STORAGE_PATH=/data \
  ILIOS_INSTITUTION_DOMAIN=example.com \
  ILIOS_SUPPORTING_LINK=null \
  ILIOS_LDAP_AUTHENTICATION_HOST=null \
  ILIOS_LDAP_AUTHENTICATION_PORT=null \
  ILIOS_LDAP_AUTHENTICATION_BIND_TEMPLATE=null \
  ILIOS_LDAP_DIRECTORY_URL=null \
  ILIOS_LDAP_DIRECTORY_USER=null \
  ILIOS_LDAP_DIRECTORY_PASSWORD=null \
  ILIOS_LDAP_DIRECTORY_SEARCH_BASE=null \
  ILIOS_LDAP_DIRECTORY_CAMPUS_ID_PROPERTY=null \
  ILIOS_LDAP_DIRECTORY_USERNAME_PROPERTY=null \
  ILIOS_SHIBBOLETH_AUTHENTICATION_LOGIN_PATH=null \
  ILIOS_SHIBBOLETH_AUTHENTICATION_LOGOUT_PATH=null \
  ILIOS_SHIBBOLETH_AUTHENTICATION_USER_ID_ATTRIBUTE=null \
  ILIOS_TIMEZONE='America/Los_Angeles' \
  ILIOS_FORCEPROTOCOL=http \
  ILIOS_KEEP_FRONTEND_UPDATED=true \
  ILIOS_FRONTEND_RELEASE_VERSION=null \
  ILIOS_CAS_AUTHENTICATION_SERVER=null \
  ILIOS_CAS_AUTHENTICATION_VERSION=3 \
  ILIOS_CAS_AUTHENTICATION_VERIFY_SSL=true \<commit_msg>Use the correct ENV variable for insecure connections<commit_after>FROM ilios/source:v3.40.0

MAINTAINER Ilios Project Team <<EMAIL>>

RUN apk add --update \
    curl \
    tar \
    php7 \
    php7-fpm \
    php7-apcu \
    php7-dom \
    php7-json \
    php7-ldap \
    php7-opcache \
    php7-openssl \
    php7-pdo \
    php7-pdo_mysql \
    php7-xml \
    php7-xmlreader \
    php7-curl \
    php7-zlib \
    php7-phar \
    php7-mbstring \
    php7-session \
    php7-ctype

RUN ln -s /usr/bin/php7 /usr/bin/php
RUN ln -s /usr/sbin/php-fpm7 /usr/sbin/php-fpm
RUN rm -rf /var/cache/apk/* && rm -rf /tmp/*

ADD ilios.ini /etc/php7/fpm/conf.d/
ADD ilios.ini /etc/php7/cli/conf.d/
ADD php-fpm.conf /etc/php7/

VOLUME /data
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

ENV COMPOSER_HOME=/tmp \
  SYMFONY_ENV=prod \
  ILIOS_API_ENVIRONMENT=prod \
  ILIOS_API_DEBUG=false \
  ILIOS_DATABASE_DRIVER=pdo_mysql \
  ILIOS_DATABASE_HOST=db \
  ILIOS_DATABASE_PORT=~ \
  ILIOS_DATABASE_NAME=ilios \
  ILIOS_DATABASE_USER=ilios \
  ILIOS_DATABASE_PASSWORD=<PASSWORD> \
  ILIOS_DATABASE_MYSQL_VERSION=5.7 \
  ILIOS_MAILER_TRANSPORT=smtp \
  ILIOS_MAILER_HOST=127.0.0.1 \
  ILIOS_MAILER_USER=~ \
  ILIOS_MAILER_PASSWORD=~ \
  ILIOS_LOCALE=en \
  ILIOS_SECRET=ThisTokenIsNotSoSecretChangeIt \
  ILIOS_AUTHENTICATION_TYPE=form \
  ILIOS_LEGACY_PASSWORD_SALT=null \
  ILIOS_FILE_SYSTEM_STORAGE_PATH=/data \
  ILIOS_INSTITUTION_DOMAIN=example.com \
  ILIOS_SUPPORTING_LINK=null \
  ILIOS_LDAP_AUTHENTICATION_HOST=null \
  ILIOS_LDAP_AUTHENTICATION_PORT=null \
  ILIOS_LDAP_AUTHENTICATION_BIND_TEMPLATE=null \
  ILIOS_LDAP_DIRECTORY_URL=null \
  ILIOS_LDAP_DIRECTORY_USER=null \
  ILIOS_LDAP_DIRECTORY_PASSWORD=<PASSWORD> \
  ILIOS_LDAP_DIRECTORY_SEARCH_BASE=null \
  ILIOS_LDAP_DIRECTORY_CAMPUS_ID_PROPERTY=null \
  ILIOS_LDAP_DIRECTORY_USERNAME_PROPERTY=null \
  ILIOS_SHIBBOLETH_AUTHENTICATION_LOGIN_PATH=null \
  ILIOS_SHIBBOLETH_AUTHENTICATION_LOGOUT_PATH=null \
  ILIOS_SHIBBOLETH_AUTHENTICATION_USER_ID_ATTRIBUTE=null \
  ILIOS_TIMEZONE='America/Los_Angeles' \
  ILIOS_REQUIRE_SECURE_CONNECTION=false \
  ILIOS_KEEP_FRONTEND_UPDATED=true \
  ILIOS_FRONTEND_RELEASE_VERSION=null \
  ILIOS_CAS_AUTHENTICATION_SERVER=null \
  ILIOS_CAS_AUTHENTICATION_VERSION=3 \
  ILIOS_CAS_AUTHENTICATION_VERIFY_SSL=true \
{'fraction_non_alphanumeric': 0.09204301075268817, 'fraction_numerical': 0.015483870967741935, 'mean_word_length': 3.7362525458248474, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, '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': '3903803', 'n_tokens_mistral': 2157, 'n_tokens_neox': 2090, 'n_words': 223}