docker-compose.yml in sapience-0.2.4 vs docker-compose.yml in sapience-0.2.5
- old
+ new
@@ -2,10 +2,16 @@
volumes:
gems:
driver: local
services:
+ rabbitmq:
+ image: rabbitmq:latest
+ environment:
+ RABBITMQ_DEFAULT_USER: sapience
+ RABBITMQ_DEFAULT_PASS: tests
+
rails:
image: ruby:2.3
cpu_shares: 4
# Specify the directory from where all commands sent to the container will be
# issued to where the code is mounted:
@@ -22,21 +28,29 @@
# "/usr/src/app" folder:
- .:/usr/src/app
# Mount the 'gems' volume on the folder that stores bundled gems:
- gems:/usr/local/bundle
+
+
rspec:
extends:
service: rails
entrypoint: /usr/src/app/dev-entrypoint.sh
command: bundle exec rake
+ depends_on:
+ - rabbitmq
environment:
+ CODECLIMATE_REPO_TOKEN: 204dc055302da6aed94379e249aa0645636d1d1794920c62db05c5fa968215de
PATH: /usr/src/app/bin:/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
test_app:
extends:
service: rails
working_dir: /usr/src/app/test_app
entrypoint: /usr/src/app/dev-entrypoint.sh
command: bundle exec rspec
+ depends_on:
+ - rabbitmq
environment:
+ AMQP: amqp://sapience:tests@rabbitmq:5672
PATH: /usr/src/app/bin:/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin