<commit_before># phabricator-smtp
#
# VERSION               0.0.1
#
# Note this is referenced from 
# - https://hub.docker.com/_/php/
# - https://secure.phabricator.com/book/phabricator/article/installation_guide/
#
FROM picoded/phabricator
MAINTAINER <NAME> <<EMAIL>>

WORKDIR /phabricator

ENV MAIL_ADAPTER PhabricatorMailImplementationPHPMailerAdapter
ENV SMTP_HOST smtp_host_here
ENV SMTP_PORT 25
ENV SMTP_USER phabricator
ENV SMTP_PASS password_over_here
ENV SMTP_PROT ""

RUN echo "#!/bin/bash" > setup-smtp.sh && \
	echo 'PHAB_DIR="/phabricator/phabricator"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set metamta.mail-adapter "${MAIL_ADAPTER}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.mailer "smtp"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-host "${SMTP_HOST}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-port "${SMTP_PORT}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-user "${SMTP_USER}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-password "${SMTP_PASS}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-protocol "${SMTP_PROT}"' >> setup-smtp.sh && \
	chmod +x setup-smtp.sh

# expose port 22 & 80<commit_msg>smtp build for phabricator (to replace latest)<commit_after># phabricator-smtp
#
# VERSION               0.0.1
#
# Note this is referenced from 
# - https://hub.docker.com/_/php/
# - https://secure.phabricator.com/book/phabricator/article/installation_guide/
#
FROM picoded/phabricator:base-mysql
MAINTAINER <NAME> <<EMAIL>>

WORKDIR /phabricator

ENV MAIL_ADAPTER PhabricatorMailImplementationPHPMailerAdapter
ENV SMTP_HOST smtp_host_here
ENV SMTP_PORT 25
ENV SMTP_USER phabricator
ENV SMTP_PASS <PASSWORD>
ENV SMTP_PROT ""

RUN echo "#!/bin/bash" > setup-smtp.sh && \
	echo 'PHAB_DIR="/phabricator/phabricator"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set metamta.mail-adapter "${MAIL_ADAPTER}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.mailer "smtp"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-host "${SMTP_HOST}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-port "${SMTP_PORT}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-user "${SMTP_USER}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-password "${SMTP_PASS}"' >> setup-smtp.sh && \
	echo '$PHAB_DIR/bin/config set phpmailer.smtp-protocol "${SMTP_PROT}"' >> setup-smtp.sh && \
	chmod +x setup-smtp.sh

# expose port 22 & 80
{'fraction_non_alphanumeric': 0.15984555984555984, 'fraction_numerical': 0.0069498069498069494, 'mean_word_length': 4.309426229508197, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 44, 'https://': 4, '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': '7120788', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1012, 'n_words': 187}