Sidekiq-based worker application to perform code analysis builds for Code Scout.
- Ruby 2.1
- Redis
- Docker
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:
Foreman uses .env
file that contain environment variables:
REDIS_URL
- Redis server connection URLDOCKER_HOST
- Docker connection string. Example:tcp://127.0.0.1:5555
.DOCKER_IMAGE
- Docker image that holds codescout scriptsCODESCOUT_URL
- Codescout service URL
After you finished configuring worker, you can start it with the following comand:
bundle exec foreman start
This project uses RSpec as a testing framework. Execute tests with:
bundle exec rake test
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
The MIT License (MIT)
Copyright (c) 2014 Doejo LLC, [email protected]