Sign inSign up

plossys/cucumber

By plossys

•Updated about 11 years ago

run docker-compose + cucumber docker-in-docker

0

1.0K

plossys/cucumber repository overview

⁠Run cucumber in Docker

You do not need cucumber on your host machine. You can instead run the cucumber tests in a Docker container. The container itself uses Docker-in-Docker⁠.

⁠Build cucumber container

First you have to build the "docker-compose-in-docker" container with cucumber, rlpr, docker-compose and dind inside.

docker build -t plossys/cucumber .

You can skip this step as the docker image is also available from the Docker hub registry.

⁠Run cucumber container

To run the cucumber tests, use the following command.

docker run --rm --privileged -ti -v $(pwd)/..:/data plossys/cucumber
⁠Investigate a scenario

To investigate a scenario you can set further environment variables for the cucumber support code with additional -e options. The best option is to use ONERROR=wait so cucumber halts after the first error.

docker run --rm --privileged --name=cucumber -ti -v $(pwd)/..:/data -e LOG=file -e ONERROR=wait plossys/cucumber

To show a log file of a container, use docker exec and inside the container docker logs as usual.

docker exec -ti cucumber docker logs cucumber_housekeeper_1 | flaschenpost

After investigation you can just press CTRL+c to abort the cucumber run.

Tag summary

Content type

Image

Digest

sha256:cfbbed1dc…

Size

139.6 MB

Last updated

about 11 years ago

docker pull plossys/cucumber