/beatalong

Share your favorite music with your friends!

Primary LanguageRubyGNU General Public License v3.0GPL-3.0

Development on Docker

Codeship Status for trekdemo/beatalong

The application can be runned over a docker environment. In order to do that, you'll have to download docker-toolbox.

Setup docker

Download docker toolbox from brew cask:

brew cask install dockertoolbox

Create a new VM with it:

docker-machine create --driver virtualbox default

Start the newly created VM

docker-machine start default

Whe opening a new terminal window, set docker's environment variables:

eval "$(docker-machine env default)"

Build the whole Docker environment

cd /to/your/application/folder
docker-compose build web
docker-compose build

Useful commands

  • start the application: docker-compose up
  • install new gems after modifiing the Gemfile: docker-compose run web bundle install
  • start a rails console: docker-compose run web bundle exec rails c
  • run the test suite: docker-compose run web bundle exec rspec