Using Docker Volumes with Travis-ci

https://travis-ci.org/lioramilbaum/devopsloft/builds/591347018

In my dev environment, I am setting up a VM where the dockerized app is spinning. I have control on the content, and therefor, the usage of docker volumes is strait forward.
Can’t figure out how to make it work in travis-ci.

You can run any docker commands as per https://docs.travis-ci.com/user/docker/.

https://travis-ci.org/lioramilbaum/devopsloft/builds/591347018#L779-L782 suggests that you may be using some nonstandard filesystem structure locally which, naturally, is absent at a Travis VM.

You probably need to create a volume and its contents in your build logic prior to using it.

Imprint