Hook BDD with Cucumber and friends in the Docker.
This docker image will setup following technology stack.
-
Ubuntu with Ruby
-
Ruby
-
Rubygem
-
PhantomJS
-
Cucumber Capybara Poltergeist framework with BDDfire
Pull the docker image from DockerHub
$ docker pull shashikant86/docker-bdd
Now wait for all provisioning done for you.
Once image is succesfully downloaded.
You can run
$ docker run -t -i shashikant86/docker-bdd /bin/bash
Now you are inside the docker container and in '/opt/bdd/cucumber' directory.
Now you can run all BDDfire[https://github.com/Shashikant86/bddfire] rake tasks. Now we will use Poltergeist
$ bundle install
$ bundle exec rake poltergeist
$ docker start {Container_id}
$ docker exec {Container_id} bundle install
$ docker exec {Container_id} bundle exec rake poltergeist