<commit_before>#!/bin/bash

set -e
set -x

if [ "$1" == "" ]; then
  echo "Argument required: <path/to/script.sh>"
  exit 1
fi

IMAGE_TAG=bosh-container
DOCKER_REGISTRY=docker.gocd.cf-app.com:5000

docker pull $DOCKER_REGISTRY/$IMAGE_TAG

docker run \
  -a stderr \
  -v $(pwd):/opt/bosh \
  -e RUBY_VERSION \
  -e DB \
  -e CODECLIMATE_REPO_TOKEN \
  $DOCKER_REGISTRY/$IMAGE_TAG \
  $1<commit_msg>run-in-container.sh nw accepts multiple arguments<commit_after>#!/bin/bash

set -e
set -x

if [ "$1" == "" ]; then
  echo "At least one argument required. ex: run-in-container.sh /path/to/cmd arg1 arg2"
  exit 1
fi

IMAGE_TAG=bosh-container
DOCKER_REGISTRY=docker.gocd.cf-app.com:5000

docker pull $DOCKER_REGISTRY/$IMAGE_TAG

docker run \
  -a stderr \
  -v $(pwd):/opt/bosh \
  -e RUBY_VERSION \
  -e DB \
  -e CODECLIMATE_REPO_TOKEN \
  $DOCKER_REGISTRY/$IMAGE_TAG \
  $@
{'fraction_non_alphanumeric': 0.1444954128440367, 'fraction_numerical': 0.017201834862385322, 'mean_word_length': 3.1770334928229667, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '750066', 'n_tokens_mistral': 406, 'n_tokens_neox': 381, 'n_words': 77}