<commit_before>FROM centos/httpd

MAINTAINER <EMAIL>

# Add internal repo
RUN rpm -ivh https://deimos.statsbiblioteket.dk/mrepo/centos7-x86_64/RPMS.sbtools/sb-repotools-0.4-12.el7.sb.noarch.rpm
RUN rpm -ivh https://deimos.statsbiblioteket.dk/mrepo/centos7-x86_64/RPMS.sbtools/yum-config-sb-centos-0.4-12.el7.sb.noarch.rpm
# Cannot disable others, as epel-release is needed.
# RUN sed -i '/^gpgkey/a\enabled=0' /etc/yum.repos.d/CentOS-Base.repo

# Now load the needed packages.

RUN yum -y install epel-release
RUN yum -y install autoconf automake krb5-workstation krb5-devel git httpd httpd-devel gcc fcgi-perl bzip2 perl-JSON perl-Config-Simple perl-Cache-Memcached perl-CGI mod_fcgid

# Add our prepared and protected folder to Apache.

COPY docker/newspaper-fcgi.conf /etc/httpd/conf.d

# Check all needed modules installed by yum
RUN perl -MCGI -MCache::Memcached -MConfig::Simple -MJSON -MCGI::Fast  -e1

EXPOSE 80
CMD ["/run-httpd.sh"]





 
<commit_msg>Disabled deimos usage.  Initial testing did not show traffic going to memcached instance.<commit_after>FROM centos/httpd

MAINTAINER <EMAIL>

# -- eventually only use internal repositories:

# Add internal repo
# RUN rpm -ivh https://deimos.statsbiblioteket.dk/mrepo/centos7-x86_64/RPMS.sbtools/sb-repotools-0.4-12.el7.sb.noarch.rpm
# RUN rpm -ivh https://deimos.statsbiblioteket.dk/mrepo/centos7-x86_64/RPMS.sbtools/yum-config-sb-centos-0.4-12.el7.sb.noarch.rpm
# Cannot disable others, as epel-release is needed.
# RUN sed -i '/^gpgkey/a\enabled=0' /etc/yum.repos.d/CentOS-Base.repo


# --- Now load the needed packages. (not rigidly filtered)

RUN yum -y install epel-release
RUN yum -y install autoconf automake krb5-workstation krb5-devel git httpd httpd-devel gcc fcgi-perl bzip2 perl-JSON perl-Config-Simple perl-Cache-Memcached perl-CGI mod_fcgid

# --- Add our prepared and protected folder to Apache.

COPY docker/newspaper-fcgi.conf /etc/httpd/conf.d

# -- Check all needed modules installed by yum - we cannot check the actual scripts as they are not present yet.
RUN perl -MCGI -MCache::Memcached -MConfig::Simple -MJSON -MCGI::Fast  -e1

# -- good to go...

EXPOSE 80
CMD ["/run-httpd.sh"]





 

{'fraction_non_alphanumeric': 0.11602209944751381, 'fraction_numerical': 0.024861878453038673, 'mean_word_length': 3.7758241758241757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5465264', 'n_tokens_mistral': 879, 'n_tokens_neox': 814, 'n_words': 210}