<commit_before>FROM brandonmathis/taperole:latest

# add playbooks to the image. This might be a git repo instead
ADD . /taperole

# We dont have swap access on travis. Chill this role out
RUN truncate -s 0 /taperole/roles/general/tasks/swapfile.yml

# Install Tape
WORKDIR /taperole
RUN gem build taperole.gemspec
RUN gem install slack-notifier
RUN gem install --local taperole

# Configure tape
RUN git clone https://github.com/BrandonMathis/vanilla-rails-app.git
WORKDIR /taperole/vanilla-rails-app
RUN echo 'n' | tape installer install
ADD ./test/rails/tape_vars.yml taperole/tape_vars.yml

# FIXME
# Disable ufw bc docker gets mad about iptables
RUN sed -i '/ufw/d' taperole/omnibox.yml

# Run Tape
RUN echo '[omnibox]' > taperole/hosts
RUN echo 'localhost ansible_connection=local be_app_env=production be_app_branch=master' >> taperole/hosts
RUN tape ansible everything
RUN chown deployer:users /home/deployer -R
ADD test/rails/start_rails.sh /

# Set command that runs the rails app
WORKDIR /
CMD ["/start_rails.sh"]<commit_msg>Use my Rails 4 repo<commit_after>FROM brandonmathis/taperole:latest

# add playbooks to the image. This might be a git repo instead
ADD . /taperole

# We dont have swap access on travis. Chill this role out
RUN truncate -s 0 /taperole/roles/general/tasks/swapfile.yml

# Install Tape
WORKDIR /taperole
RUN gem build taperole.gemspec
RUN gem install slack-notifier
RUN gem install --local taperole

# Configure tape
RUN git clone https://github.com/BrandonMathis/vanilla_4.git
WORKDIR /taperole/vanilla-rails-app
RUN echo 'n' | tape installer install
ADD ./test/rails/tape_vars.yml taperole/tape_vars.yml

# FIXME
# Disable ufw bc docker gets mad about iptables
RUN sed -i '/ufw/d' taperole/omnibox.yml

# Run Tape
RUN echo '[omnibox]' > taperole/hosts
RUN echo 'localhost ansible_connection=local be_app_env=production be_app_branch=master' >> taperole/hosts
RUN tape ansible everything
RUN chown deployer:users /home/deployer -R
ADD test/rails/start_rails.sh /

# Set command that runs the rails app
WORKDIR /
CMD ["/start_rails.sh"]
{'fraction_non_alphanumeric': 0.08405797101449275, 'fraction_numerical': 0.001932367149758454, 'mean_word_length': 4.493368700265252, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3355887', 'n_tokens_mistral': 738, 'n_tokens_neox': 688, 'n_words': 231}