<commit_before># gitlab-ci-runner

FROM ubuntu:12.04
MAINTAINER  <NAME> "<EMAIL>"
ORIGINAL    weisjohn "<EMAIL>"

# Update your packages and install the ones that are needed to compile Ruby

RUN apt-get update -y
RUN apt-get install -y wget curl gcc libxml2-dev libxslt-dev libcurl4-openssl-dev libreadline6-dev libc6-dev libssl-dev make build-essential zlib1g-dev openssh-server git-core libyaml-dev postfix libpq-dev

# Download Ruby and compile it

RUN mkdir /tmp/ruby && cd /tmp/ruby
RUN curl --progress http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | tar xz
RUN cd ruby-1.9.3-p392
RUN ./configure
RUN make
RUN make install

# Install the runner

RUN git clone https://github.com/gitlabhq/gitlab-ci-runner.git /gitlab-ci-runner
RUN cd /gitlab-ci-runner

## Install the gems for the runner

RUN gem install bundler
RUN bundle install

# Install the runner

RUN bundle exec ./bin/install

# setup ssh 

## sub-optimal... it seems that ssh-keygen doesn't honor $HOME
## mkdir for .ssh keys in the base director
run         mkdir /.ssh
## modify ssh config to use the appropriate key 
run         echo "\nIdentityFile /.ssh/id_rsa" >> /etc/ssh/ssh_config


## the default command to be run when this docker image is started
cmd         /gitlab-ci-runner/bin/runner
<commit_msg>Hardcode path for configure.<commit_after># gitlab-ci-runner

FROM ubuntu:12.04
MAINTAINER  <NAME> "<EMAIL>"
ORIGINAL    weisjohn "<EMAIL>"

# Update your packages and install the ones that are needed to compile Ruby

RUN apt-get update -y
RUN apt-get install -y wget curl gcc libxml2-dev libxslt-dev libcurl4-openssl-dev libreadline6-dev libc6-dev libssl-dev make build-essential zlib1g-dev openssh-server git-core libyaml-dev postfix libpq-dev

# Download Ruby and compile it

RUN mkdir /tmp/ruby && cd /tmp/ruby
RUN curl --progress http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | tar xz
RUN cd ruby-1.9.3-p392
RUN /tmp/ruby/ruby-1.9.3-p392/configure
RUN make
RUN make install

# Install the runner

RUN git clone https://github.com/gitlabhq/gitlab-ci-runner.git /gitlab-ci-runner
RUN cd /gitlab-ci-runner

## Install the gems for the runner

RUN gem install bundler
RUN bundle install

# Install the runner

RUN bundle exec ./bin/install

# setup ssh 

## sub-optimal... it seems that ssh-keygen doesn't honor $HOME
## mkdir for .ssh keys in the base director
run         mkdir /.ssh
## modify ssh config to use the appropriate key 
run         echo "\nIdentityFile /.ssh/id_rsa" >> /etc/ssh/ssh_config


## the default command to be run when this docker image is started
cmd         /gitlab-ci-runner/bin/runner

{'fraction_non_alphanumeric': 0.09874189858940145, 'fraction_numerical': 0.019824628288219594, 'mean_word_length': 3.351575456053068, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2032363', 'n_tokens_mistral': 948, 'n_tokens_neox': 865, 'n_words': 309}