Capistrano-sidekiq-docker
Added capistrano support to deploy sidekiq on the docker containers.
Requirements
- Capistrano >= 3.0
- Setup your container using docker-compose
Installation
gem 'capistrano-sidekiq-docker', group: :development
And then execute:
$ bundle
Usage
# Capfile
require 'capistrano/sidekiq'
Configurable options:
set :sidekiq_release_path, -> { nil }
set :sidekiq_shared_path, -> { nil }
set :sidekiq_pid, -> { File.join(fetch(:sidekiq_shared_path) || fetch(:shared_path), 'tmp', 'pids', 'sidekiq.pid') }
set :sidekiq_role, -> { :app }
set :sidekiq_processes, -> { 1 }
set :sidekiq_user, -> { nil }
set :sidekiq_docker_compose_file_path, -> { '/etc/docker/sidekiq/docker-compose.yml' }
set :sidekiq_docker_env_options, -> { nil }
set :sidekiq_docker_container_name, -> { nil }
set :sidekiq_docker_image_name, -> { 'sidekiq' }
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Changelog
- 0.2.1: Fixing bundle install options, Checking if process is running before stopping sidekiq
- 0.2: Added bundle install support for docker