machine:
  services:
    - docker
dependencies:
        #  cache_directories:
        #    - "~/docker-postgresql"
  override:
          #    - docker info
          #    - if [[ -e ~/docker-postgresql/image.tar ]]; then docker load --input ~/docker-postgresql/image.tar; fi
    - docker build -t sameersbn/postgresql .
      #    - mkdir -p ~/docker-postgresql; docker save --output ~/docker-postgresql/image.tar sameersbn/postgresql
test:
  override:
    - docker run -d --name=postgresql sameersbn/postgresql; sleep 10; docker ps; docker stop postgresql; sleep 5; docker ps -a
    - docker run -it -e DEBUG=true --volumes-from=postgresql sameersbn/postgresql psql -U postgres -c "\conninfo"


machine:
  services:
    - docker
dependencies:
    #  cache_directories:
    #    - "~/docker-postgresql"
  override:
    #    - docker info
    #    - if [[ -e ~/docker-postgresql/image.tar ]]; then docker load --input ~/docker-postgresql/image.tar; fi
    - docker build -t sameersbn/postgresql:9.5.1-01 .
    #    - mkdir -p ~/docker-postgresql; docker save --output ~/docker-postgresql/image.tar sameersbn/postgresql
test:
  override:
    - docker run -d --name=postgresql sameersbn/postgresql:9.5.1-01; sleep 10; docker ps; docker stop postgresql; sleep 5; docker ps -a
    - docker run -it -e DEBUG=true --volumes-from=postgresql sameersbn/postgresql:9.5.1-01 psql -U postgres -c "\conninfo"


Remove caching, might be intrfering with our build
Remove caching, might be intrfering with our build
