rylandg / shrun

Test CLI commands in isolated containers

Home Page:https://www.npmjs.com/package/shrun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make it possible to mount docker volumes for shrun tests

rylandg opened this issue · comments

Right now it's not possible for the user to mount a runtime volume into a shrun container. This is prohibitive and makes certain use cases impossible.

Initial support for this is released.

41ec4e0

For potential readers, there is an example here https://github.com/rylandg/shrun-basic-demo/blob/master/package.json

Usage is:

shrun --volume $(pwd)/LICENSE:/home/dockeruser/LICENSE --testMatch 'specs' --dockerImage 'testshrun:latest'