<commit_before>FROM nickelroll/jessie-baseimage:latest
MAINTAINER <NAME> <<EMAIL>>

ENV HOME /root
ENV LANG en_CA.UTF-8
RUN locale-gen en_CA.UTF-8

# Fixes Docker Automated Build problem
RUN ln -s -f /bin/true /usr/bin/chfn

# Install tools
RUN apt-get update -q 2 && DEBIAN_FRONTEND=noninteractive \
    apt-get install -y apt-transport-https ca-certificates > /dev/null

# Install Phusion Passenger Repository for Passenger/NGINX
ADD conf/apt/passenger.list /etc/apt/sources.list.d/
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY> \
    && chmod 0600 /etc/apt/sources.list.d/passenger.list

# Install puppet, puppetmaster, nginx, and passenger
RUN apt-get update -q 2 && DEBIAN_FRONTEND=noninteractive \
    apt-get install --yes -q 2 puppetmaster puppet \
        nginx-extras passenger >/dev/null

# Install the nginx configuration and sites
ADD conf/nginx/nginx.conf /etc/nginx/nginx.conf
RUN ln -s /etc/nginx/sites-available/puppetmaster /etc/nginx/sites-enabled/puppetmaster \
    && rm /etc/nginx/sites-enabled/default

# Install the Puppet Master's rack server
RUN mkdir -p /usr/share/puppet/rack/puppetmaster/tmp /usr/share/puppet/rack/puppetmaster/public \
    && chown puppet:puppet -R /usr/share/puppet/rack/puppetmaster

# Backup the Puppet config files, we'll regenerate them on boot if they're not present
RUN mkdir -p /usr/lib/puppet/default \
    && find /etc/puppet -maxdepth 1 -type f -iname "*.conf" -exec mv {} /usr/lib/puppet/default \; \
    && cp /usr/share/puppet/ext/rack/config.ru /usr/lib/puppet/default

# Install boot scripts
ADD scripts/10_generate_puppet_config.rb /etc/my_init.d/
ADD scripts/11_generate_nginx_site.rb /etc/my_init.d/
ADD scripts/12_generate_puppetmaster_keys.sh /etc/my_init.d/
RUN chmod +x /etc/my_init.d/*

# Install runit scripts
ADD scripts/nginx-startup.sh /etc/service/nginx/run
RUN chmod +x /etc/service/nginx/run

# Expose Puppet Master port
EXPOSE 8140

# use baseimage's init system
CMD ["/sbin/my_init"]<commit_msg>Remove duplicate locale generation<commit_after>FROM nickelroll/jessie-baseimage:latest
MAINTAINER <NAME> <<EMAIL>>

ENV HOME /root

# Fixes Docker Automated Build problem
RUN ln -s -f /bin/true /usr/bin/chfn

# Install tools
RUN apt-get update -q 2 && DEBIAN_FRONTEND=noninteractive \
    apt-get install -y apt-transport-https ca-certificates > /dev/null

# Install Phusion Passenger Repository for Passenger/NGINX
ADD conf/apt/passenger.list /etc/apt/sources.list.d/
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY> \
    && chmod 0600 /etc/apt/sources.list.d/passenger.list

# Install puppet, puppetmaster, nginx, and passenger
RUN apt-get update -q 2 && DEBIAN_FRONTEND=noninteractive \
    apt-get install --yes -q 2 puppetmaster puppet \
        nginx-extras passenger >/dev/null

# Install the nginx configuration and sites
ADD conf/nginx/nginx.conf /etc/nginx/nginx.conf
RUN ln -s /etc/nginx/sites-available/puppetmaster /etc/nginx/sites-enabled/puppetmaster \
    && rm /etc/nginx/sites-enabled/default

# Install the Puppet Master's rack server
RUN mkdir -p /usr/share/puppet/rack/puppetmaster/tmp /usr/share/puppet/rack/puppetmaster/public \
    && chown puppet:puppet -R /usr/share/puppet/rack/puppetmaster

# Backup the Puppet config files, we'll regenerate them on boot if they're not present
RUN mkdir -p /usr/lib/puppet/default \
    && find /etc/puppet -maxdepth 1 -type f -iname "*.conf" -exec mv {} /usr/lib/puppet/default \;

# Install boot scripts
ADD scripts/10_generate_puppet_config.rb /etc/my_init.d/
ADD scripts/11_generate_nginx_site.rb /etc/my_init.d/
ADD scripts/12_generate_puppetmaster_keys.sh /etc/my_init.d/
RUN chmod +x /etc/my_init.d/*

# Install runit scripts
ADD scripts/nginx-startup.sh /etc/service/nginx/run
RUN chmod +x /etc/service/nginx/run

# Expose Puppet Master port
EXPOSE 8140

# use baseimage's init system
CMD ["/sbin/my_init"]
{'fraction_non_alphanumeric': 0.11536485097636177, 'fraction_numerical': 0.009763617677286743, 'mean_word_length': 3.7016908212560384, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '1907830', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1401, 'n_words': 355}