Skip to content

Worker application to perform code analysis builds for Code Scout.

Notifications You must be signed in to change notification settings

codescout/codescout-worker

Repository files navigation

codescout-worker

Sidekiq-based worker application to perform code analysis builds for Code Scout.

Requirements

  • Ruby 2.1
  • Redis
  • Docker

Installation

Clone repository and install dependencies:

git clone https://github.com/codescout/codescout-worker.git
cd codescout-worker
bundle install

Copy sample environment file:

cp .env.sample .env

Then adjust environment variables in the .env file:

Configuration

Foreman uses .env file that contain environment variables:

  • REDIS_URL - Redis server connection URL
  • DOCKER_HOST - Docker connection string. Example: tcp://127.0.0.1:5555.
  • DOCKER_IMAGE - Docker image that holds codescout scripts
  • CODESCOUT_URL - Codescout service URL

Usage

After you finished configuring worker, you can start it with the following comand:

bundle exec foreman start

Testing

This project uses RSpec as a testing framework. Execute tests with:

bundle exec rake test

Docker

You can run codescout-worker via Docker:

# Install docker image on your system
docker pull sosedoff/codescout-worker

# Start worker daemon
docker run -d \
           -e REDIS_URL=url \
           -e CODESCOUT_URL=url \
           -e DOCKER_HOST=host \
           -e DOCKER_IMAGE=sosedoff/codescout

License

The MIT License (MIT)

Copyright (c) 2014 Doejo LLC, [email protected]

About

Worker application to perform code analysis builds for Code Scout.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published