Skip to content

An example of how to run a Ruby project in Docker in a Buildkite pipeline

License

Notifications You must be signed in to change notification settings

matthewd/ruby-docker-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buildkite Ruby Docker Example

Add to Buildkite

This repository is an example on how to test a Ruby project using Buildkite and Docker. It uses the standard Ruby Docker image and Buildkite’s Docker-based Builds.

Running locally

To run this locally:

$ docker-compose run app rspec --color specs
Building app
Step 1 : FROM ruby:2.1
 ---> e4920b48871c
Step 2 : RUN mkdir /app
 ---> Using cache
 ---> 41174643e51e
Step 3 : WORKDIR /app
 ---> Using cache
 ---> e090d3fb63e6
Step 4 : ADD Gemfile Gemfile.lock /app/
 ---> Using cache
 ---> 6e1831999c8c
Step 5 : RUN bundle install -j 8
 ---> Using cache
 ---> 6995ab4574ca
Step 6 : ADD . /app
 ---> cc8df46d2d0e
Removing intermediate container 6ec9b2c13ff3
Successfully built cc8df46d2d0e
.

Finished in 0.00101 seconds (files took 0.05301 seconds to load)
1 example, 0 failures

License

See Licence.md (MIT)

About

An example of how to run a Ruby project in Docker in a Buildkite pipeline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 47.8%
  • Shell 28.3%
  • Dockerfile 23.9%