Open jawher opened 9 years ago
would a simple syntax like services be enough ?
volumes:
- /some/path/on/host:/a/container/path
and we juste add this when running docker run
on the build container
I really don't like the idea of specifying host paths in the .bazooka.yml
file.
I was thinking of something like:
volumes:
- env_var_name:/a/container/path
Where bazooka would mount a host directory in the container under the specified path, while also exposing an env var with the specified name containing the said host path.
An example:
In the upcoming bazooka e2e (end to end tests):
.bazooka.yml
and a couple.go
files for examplegit://
protocol. The files directory is bind-mounted to the git containerThis works if the test code is executed on the host, but not in bazooka, because the test code places the files in a directory in its own filesystem, which is not visible from the outside and cannot be mounted as a volume in another container.