File: docker-compose.yml

package info (click to toggle)
ruby-fog-openstack 1.0.8-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,132 kB
  • sloc: ruby: 36,411; makefile: 5; sh: 4
file content (44 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (2)
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
        '