Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 795 Bytes

DockerCompose.md

File metadata and controls

19 lines (16 loc) · 795 Bytes

Docker Compose for contributors

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. Clear and check files with Rubocop docker-compose run --rm app bundle exec rubocop -D
  7. Optional: log in to container an using a bash shell for running specs
docker-compose run --rm app bash
bundle exec rspec