Have a look at

config.ssh.port
config.ssh.host

If you set those, and the vagrant user/ssh key, then I assume you can use
vagrant to connect and execute commands in that machine you want to use
with docker.

Will be this what you are looking?

Desktop with Vagrant ===> Server with Docker.

Alvaro.


On Sun, Feb 9, 2014 at 6:14 PM, Slicer <ja...@balean.com.au> wrote:

> I'm trying to standardize my project development setup using Vagrantfiles
> such that project components may be installed on multiple virtualization
> platforms - Virtual Box, VMware, Parallels, ... - as well as in Docker
> containers. Project components will be developed on separate VMs, then
> integrated for production using Docker containers on another VM.
>
>
> *For development of components:*
>
>    - I have created minimal base boxes for all platforms, and add
>    Provider definitions for each in the Vagrantfile of components. Components
>    are then Provisioned with Puppet. This is the typical way Vagrant is used.
>
>
> *For production (integration of components):*
>
>    - The aim is to the have the production Vagrantfile's Provisioner
>    (Puppet) execute component Vagrantfiles on the VM. These will create Docker
>    containers for each project component and Provision with Puppet. I believe
>    this will require a Docker Provider, similar to Fabio Rehm's attempt (
>    github.com/fgrehm/docker-provider). However, it seems as though it is
>    not possible to provision the Docker container ('machine mode') through
>    Vagrant using this project.
>
>
> *My queries:*
>
>    1. Has anybody else attempted something similar? What are your
>    comments on this approach?
>    2. Is it necessary to install Vagrant on the production VM to execute
>    the Docker Vagrantfiles? Or is it possible to use the Vagrant installation
>    on the hypervisor to provision internal Vagrantfiles over SSH?
>    3. As this use case shows, I would have thought that Docker is more of
>    a Vagrant Provider than a Provisioner, though perhaps I am misunderstanding
>    something?
>
> Any advice would be greatly appreciated.
>
> Thanks,
> Slicer
>
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to