Skip to content

pug-ci/pug-worker

Repository files navigation

Pug::Worker

Build Status Code Climate

Worker is the component of Pug CI that spawns specified number of compute instances, each of which subscribes to broker queue and handles processing of single builds stream.

The process of building works as follows:

  • instance receives build request
  • generates bash script containing ordered build stages (cloning repository, installing dependencies, executing tests) based on configuration file provided in application's repository,
  • launches Docker container suitable for application's environment,
  • uploads script and executes it inside container instance,
  • publishes state changes and result to dedicated broker exchange.

Installation

Add this line to your application's Gemfile:

gem 'pug-worker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pug-worker

Usage

TODO: Write usage instructions

Docker

You can use both docker and docker-compose with this project, in order to run tests, integration tests or a sample worker pool without setting up RabbitMQ in your local development environment.

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pug-worker.

License

The gem is available as open source under the terms of the MIT License.

About

CI worker building apps inside Docker containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published