<commit_before>FROM ruby

LABEL MAINTAINER <EMAIL>
ENV PORT=80
ENV SHARE="azurefsshare"
ENV SHAREPWD="<PASSWORD>"
ENV SHAREACCT="azurestorageaccountname"
ENV GOLLUMCONF=""

#Gollum prereq layer
RUN apt-get -qq update \
  && apt-get -y --fix-missing install libicu-dev cmake build-essential make ruby-dev libicu-dev zlib1g-dev \
  && rm -rf /var/lib/apt/lists/* \
  && gem install bundler 

#Gollum binaries, but this is not what I want for scale out ??
#RUN git clone https://github.com/gollum/gollum /gollum
#WORKDIR /gollum
#RUN git checkout -b 5.x origin/5.x \
#  && bundle install

#RUN gem install github-linguist
#RUN gem install gollum
#RUN gem install org-ruby  # optional

#here we must use a file share
RUN apt-get install cifs-utils \
  && mkdir /wiki \
  && git init /wiki

#WORKDIR /wiki

# ------------------------
# SSH Server support
# ------------------------
RUN apt-get update \ 
  && apt-get install -y --no-install-recommends openssh-server \
  && echo "root:Docker!" | chpasswd

COPY sshd_config /etc/ssh/
COPY init_container.sh /bin/

RUN chmod 755 /bin/init_container.sh 
EXPOSE 2222 $PORT

CMD ["/bin/init_container.sh"]




#CMD ["gollum", "--port", "80"]

# Install dependencies
#RUN apt-get update
#RUN apt-get install -y -q build-essential ruby1.9.3 python python-docutils ruby-bundler libicu-dev libreadline-dev libssl-dev zlib1g-dev git-core
#RUN apt-get clean
#RUN rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*

# Install gollum
#RUN gem install gollum redcarpet github-markdown

# Initialize wiki data
#RUN mkdir /root/wikidata
#RUN git init /root/wikidata<commit_msg>build<commit_after>FROM ruby

LABEL MAINTAINER <EMAIL>
ENV PORT=80
ENV SHARE="azurefsshare"
ENV SHAREPWD="<PASSWORD>"
ENV SHAREACCT="azurestorageaccountname"
ENV GOLLUMCONF=""

#Gollum prereq layer
RUN apt-get -qq update \
  && apt-get -y --fix-missing install libicu-dev cmake build-essential make ruby-dev libicu-dev zlib1g-dev \
  && rm -rf /var/lib/apt/lists/* \
  && gem install bundler 

#Gollum binaries, but this is not what I want for scale out ??
#RUN git clone https://github.com/gollum/gollum /gollum
#WORKDIR /gollum
#RUN git checkout -b 5.x origin/5.x \
#  && bundle install

#RUN gem install github-linguist
#RUN gem install gollum
#RUN gem install org-ruby  # optional

#here we must use a file share
RUN apt-get -qq update \ 
  && apt-get install cifs-utils \
  && mkdir /wiki \
  && git init /wiki

#WORKDIR /wiki

# ------------------------
# SSH Server support
# ------------------------
RUN apt-get -qq update \ 
  && apt-get install -y --no-install-recommends openssh-server \
  && echo "root:Docker!" | chpasswd

COPY sshd_config /etc/ssh/
COPY init_container.sh /bin/

RUN chmod 755 /bin/init_container.sh 
EXPOSE 2222 $PORT

CMD ["/bin/init_container.sh"]




#CMD ["gollum", "--port", "80"]

# Install dependencies
#RUN apt-get update
#RUN apt-get install -y -q build-essential ruby1.9.3 python python-docutils ruby-bundler libicu-dev libreadline-dev libssl-dev zlib1g-dev git-core
#RUN apt-get clean
#RUN rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*

# Install gollum
#RUN gem install gollum redcarpet github-markdown

# Initialize wiki data
#RUN mkdir /root/wikidata
#RUN git init /root/wikidata
{'fraction_non_alphanumeric': 0.14625115705029312, 'fraction_numerical': 0.011107682813946312, 'mean_word_length': 3.1457800511508953, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1001742', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1140, 'n_words': 355}