-
Build the image:
docker-compose build
This will build the docker image defined in the Dockerfile. It can take a while to pull images and run the installation steps, but you shouldn't have to repeat this step unless you delete the image.
-
Create and seed the database:
docker-compose run plans rake db:setup
At this point, you're ready to run the development server, tests, or the console as described below.
- Run the development server:
docker-compose up
- Run tests:
docker-compose run plans ./bin/rspec spec
- Run a Rails console:
docker-compose run plans ./bin/rails console