GithubHelp home page GithubHelp logo

isabella232 / rails-docker-parallel-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buildkite/rails-docker-parallel-example

0.0 0.0 0.0 44 KB

An example of how to run Rails CI and test steps in parallel with Docker and Buildkite

Home Page: https://github.com/buildkite/example-pipelines

License: MIT License

Ruby 68.82% Shell 1.40% Dockerfile 29.78%

rails-docker-parallel-example's Introduction

Buildkite Rails Docker Parallel Example

Add to Buildkite

This repository is an example of how to easily run a large number of parallel testing agents for a Rails application using Buildkite, Docker and Knapsack. This approach works well with Docker available autoscaling environments like the Buildkite AWS Stack.

This repository doesn't actually include a Rails sample application, but has the same CI scripts, Dockerfile and docker-compose.yml you would use for a production application. For a non-Docker based setup, see the Rails Parallel Example.

Files to note:

How does it work?

In the pipeline configuration file the parallelism property for the test step is set to 20. When a build, the step will appear 20 times in the pipeline, each with different environment variables exposed so you can divvy up your test suite accordingly. You can set the parallelism as high as you need to bring down your build times.

See the parallelizing builds guide for more information to create parallelized and distributed builds with Buildkite.

See the Containerized Builds with Docker guide for information on how to use Docker Compose with Buildkite pipelines.

Consult the Knapsack documentation for configuring your database and dependent services to support running parallel steps on the one machine.

Knapsack Pro

See Knapsack Pro version of this example pipeline for how to perform dynamic splits/allocation of test nodes.

Running locally

To run the specs locally on your development machine, you can run:

docker-compose run app scripts/ci/parallel_specs.sh

License

See Licence.md (MIT)

rails-docker-parallel-example's People

Contributors

dependabot[bot] avatar keithpitt avatar plaindocs avatar renovate-bot avatar toolmantim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.