bazooka-ci / bazooka

Continuous Integration and Continuous Deployment Server
http://docs.bazooka-ci.io/
MIT License
60 stars 5 forks source link

Make it possible for projects to have volumes #206

Open jawher opened 9 years ago

jawher commented 9 years ago

An example:

In the upcoming bazooka e2e (end to end tests):

This 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.

julienvey commented 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

jawher commented 9 years ago

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.