Skip to content

Krzysiaczek/docker-behat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-behat

This repository is the source of tvial/behat which brings :

  • a basic shell with oh-my-zsh
  • php5-cli with PHP 5.5
  • behat 3.0 / mink 1.5
  • all needed dependencies

Install

docker pull tvial/behat

Usage

On your host, you can add the behat() function to your shell environnement:

function behat() { docker run -t -i --rm -h docker-behat -v $(pwd):/home/behat/data:rw tvial/behat /bin/zsh -c "behat $*" ;}

You can now call behat command from your host, it will be executed in your docker container. Note that the container will be removed when the behat process will end usins --rm.
A data folder is mounted read/write to your current folder (the one you launched docker-behat).

Or:

docker run -t -i -h docker-behat -v $(pwd):/home/behat/data:rw tvial/behat /bin/zsh  

You should see a prompt containing [ docker-behat ] and have behat command available.

Build

If you need adapt the project to your needs, clone, modify the Dockerfile and from the source directory, run:

docker build -t tvial/behat .

Also available via Docker Index.

About

Installs Behat and depencies into a new container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%