Config for test and development docker containers

This commit is contained in:
Maciej Szlosarczyk 2018-04-13 15:44:19 +03:00
parent b02df5ef02
commit 359e444839
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
7 changed files with 113 additions and 6 deletions

8
docker/docker_test.sh Executable file
View file

@ -0,0 +1,8 @@
# /bin/sh
docker-compose down
docker-compose build
# Setup test database
docker-compose run app rake db:setup:all test
# Finally run tests to check if everything is in order
docker-compose run app rspec