<commit_before>FROM centos:7

WORKDIR /opt
RUN yum install -y https://opscode-omnibus-packages.s3.amazonaws.com/el/7/x86_64/chefdk-0.10.0-1.el7.x86_64.rpm
ADD https://github.com/Alfresco/chef-alfresco/archive/newtomcat.tar.gz .
RUN tar -xvf newtomcat.tar.gz

WORKDIR chef-alfresco-newtomcat
ENV LC_CTYPE en_US.UTF-8
RUN yum install -y git
RUN berks vendor
RUN mkdir /etc/chef/
RUN mv berks-cookbooks/ /etc/chef/cookbooks

WORKDIR /etc/chef
COPY attributes.json .
RUN  chef-client -z -j attributes.json
RUN sed -i s/autostart=false/autostart=true/g /etc/supervisor.d/tomcat-alfresco.conf
RUN sed -i s/\"$/\ \$JAVA_OPTS\"/g /usr/share/tomcat-multi/alfresco/bin/setenv.sh

# cleanup
RUN rm -r /etc/chef/
RUN rm -r /var/tmp/
RUN rm -r /root/.chef/
RUN rm -r /root/.m2/
RUN rm -r /root/.berkshelf/
RUN rm -r /opt/chefdk/
RUN yum clean all

ENTRYPOINT supervisord -n -c /etc/supervisord.conf<commit_msg>image flattened<commit_after>FROM centos:7

COPY attributes.json /etc/chef/
ENV LC_CTYPE en_US.UTF-8
ADD https://github.com/Alfresco/chef-alfresco/archive/newtomcat.tar.gz /opt/

RUN yum install -y https://opscode-omnibus-packages.s3.amazonaws.com/el/7/x86_64/chefdk-0.10.0-1.el7.x86_64.rpm && \
  yum install -y git && \
  tar -xvf /opt/newtomcat.tar.gz && \
  cd chef-alfresco-newtomcat && \
  berks vendor && \
  mv berks-cookbooks/ /etc/chef/cookbooks && \
  cd /etc/chef/ && chef-client -z -j /etc/chef/attributes.json && \
  rm -r /etc/chef/ /var/tmp/ /root/.chef/  /root/.m2/ /root/.berkshelf/  /opt/chefdk/ && \
  yum clean all

RUN sed -i s/autostart=false/autostart=true/g /etc/supervisor.d/tomcat-alfresco.conf
RUN sed -i s/\"$/\ \$JAVA_OPTS\"/g /usr/share/tomcat-multi/alfresco/bin/setenv.sh

ENTRYPOINT supervisord -n -c /etc/supervisord.conf
{'fraction_non_alphanumeric': 0.15810502283105024, 'fraction_numerical': 0.021689497716894976, 'mean_word_length': 3.0391705069124426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6901835', 'n_tokens_mistral': 785, 'n_tokens_neox': 758, 'n_words': 152}