# To build the base image (official Aruba base for this), run:
#
#   $ docker-compose build base
#
# To run the tests, run:
#
#   $ docker-compose run tests
#

version: '2'
services:
  base:
    image: 'cucumber/aruba'
    container_name: 'cucumber-aruba-1'
    build:
      context: .
      dockerfile: Dockerfile
      args:
        http_proxy: "${http_proxy}"
        https_proxy: "${https_proxy}"
        HTTP_PROXY: "${HTTP_PROXY}"
        HTTPS_PROXY: "${HTTPS_PROXY}"
    working_dir: /home/guest/aruba
    command: /bin/bash -l -c "bundle exec rake test"
    volumes:
      - .:/home/guest/aruba
