forked from fog/fog-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 929 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# This file allows to:
# - create a ruby docker environment for development
# - run a testsuite from scratch like .travis.yml
#
# Run all tests with
#
# $ docker-compose up test
#
# Create the develompent environment with
#
# $ docker-compose up -d ruby
# $ docker exec -ti fogopenstack_ruby_1 /bin/bash
#
version: '2'
services:
ruby:
image: ruby:2.4-stretch
cap_add:
- SYS_PTRACE
volumes:
- .:/code:z
- .:/home/travis/build/fog/fog-openstack:z
entrypoint: tail -f /etc/hosts
test:
image: ruby:2.4-stretch
cap_add:
- SYS_PTRACE
volumes:
- .:/code:z
- .:/home/travis/build/fog/fog-openstack:z
environment:
- JRUBY_OPTS=--debug
working_dir: /home/travis/build/fog/fog-openstack
entrypoint: |
bash -c '
gem update bundler --verbose
bundle install --verbose
bundle exec rake test
bundle exec rake spec
'