Docker Compose for contributors

June 12, 2020 ยท View on GitHub

This gem includes different adapters which require specific tools instaled on local machine. With docker this could be achieved inside container and new contributor could start working on code with a minumum efforts.

Steps:

  1. Install Docker Compose https://docs.docker.com/compose/install
  2. Build the app container docker-compose build
  3. Install gems docker-compose run --rm app bundle install
  4. Run specs docker-compose run --rm app bundle exec rspec
  5. Run tests docker-compose run --rm app bundle exec rake test
  6. Optional: log in to container an using a bash shell for running specs
docker-compose run --rm app bash
bundle exec rspec