title: Running build via gitlab ci / docker
body: <p>I have successfully installed <code>Gitlab CI</code> and also linked it with my <code>gitlab</code>. I have also configured shared runners using <code>docker</code> with a <code>ruby-2.2</code> image with <code>mysql</code> service. </p>
  
  <p>Following was what I executed to configure a runner by referring <a href="https://about.gitlab.com/2015/04/17/unofficial-gitlab-ci-runner/" rel="nofollow">https://about.gitlab.com/2015/04/17/unofficial-gitlab-ci-runner/</a>:</p>
  
  <pre><code>$ gitlab-ci-multi-runner register \
    --non-interactive \
    --url "https://my.gitlab.ip/" \
    --registration-token "REGISTRATION_TOKEN" \
    --description "ruby-mysql" \
    --executor "docker" \
    --docker-image ruby:2.2 --docker-mysql latest
  </code></pre>
  
  <p>I have a sample Ruby / Rails application and for some reason the runner doesn't run the build. Here is my <code>.gitlab-ci.yml</code>:</p>
  
  <pre><code>image: ruby:2.2
  
  services:
    - mysql:latest
  
  before_script:
    - ruby -v
    - gem install bundler
    - cp config/database.yml.example config/database.yml
    - cp config/secrets.yml.example config/secrets.yml
    - bundle install
  
  spec:
    script:
      - bundle exec rspec
    tags:
      - ruby-mysql
  </code></pre>