News for hackers. Stuff that matters.
Re:Fig 1.0: Boot2docker compatibility and more by deadweight3 on Friday October 17, 2014 @01:45PM (#8472265)
So is this essentially the same as Vagrant then? I'm really confused now.
Re:Fig 1.0: Boot2docker compatibility and more by mitchellh on Friday October 17, 2014 @02:56PM (#8472747)
I haven't seen how it has evolved, but historically it has been basically the same as our Docker provider: http://docs.vagrantup.com/v2/docker/index.html

The other comments at this level saying Vagrant spins up a full VM are incorrect. Vagrant will spin up boot2docker if it isn't running (which Fig requires as well), and then just execute Docker to run containers. On Linux, Vagrant doesn't spin up a VM at all; it just executes Docker directly.

I'm not here to talk about Fig vs. Vagrant, since I think this thread should be about congratulating Fig to 1.0, but I did want to make sure that some facts aren't incorrect.

Re:Fig 1.0: Boot2docker compatibility and more by deadweight3 on Friday October 17, 2014 @05:42PM (#8473524)
Right, I really phrased that poorly. I use vagrant on a windows machine in the office and various macs at home. Without the LXC, fig & docker don't really provide anything above what I'm using. Were I to move to linux, then this would have some advantages. Thanks for the clarification and a fantastic product.
Re:Fig 1.0: Boot2docker compatibility and more by zenlikethat on Friday October 17, 2014 @05:10PM (#8473398)
They are different tools for different use cases.

Fig is a tool written in Python specifically designed to orchestrate groups of docker containers. It does not require virtualization by default, it talks directly to the Docker API (so you can use it directly on Linux without boot2docker/VirtualBox). It is useful because previously people were writing their own custom little Bash scripts etc. to bootstrap containers for e.g. a PHP app to run app code, a MySQL database, a redis instance and an instance of nginx to serve static files which are all meant to be tied together and work together in a specific way. One of the goals of docker is "one concern per container" so this helps people to use it in the right way and you don't have to, say, restart your database to restart your app (like you would if you crammed them all into one container).

Vagrant is a general purpose tool for automation and management of virtual machines written in Ruby. You specify configuration in Ruby. One of its goals is choice, so it has swappable "drivers" (so that you can use different hypervisors such as VirtualBox, Fusion, and HyperV) and "provisioners" (for installing software etc. when you bootstrap a new VM). I'm afraid I have to plead ignorance on the Docker provisioner, but mitchellh is the creator so I'm sure his input is sound.

Re:Fig 1.0: Boot2docker compatibility and more by quantisan on Friday October 17, 2014 @02:19PM (#8472497)
the concept is the same as Vagrant. but it's substantially faster. when you `fig up` your app, it spins up almost instantaneously because it's backed by Docker.
Re:Fig 1.0: Boot2docker compatibility and more by gdw2 on Friday October 17, 2014 @02:20PM (#8472504)
Similar ends, but different means. Vagrant would launch a full-blown VM (likely on the order of several minutes), whereas fig'ing will start a container (on the order of a few seconds).
Re:Fig 1.0: Boot2docker compatibility and more by nailer on Friday October 17, 2014 @04:10PM (#8473076)
Fig still requires boot2docker, which uses VirtualBox.

See linked page at https://docs.docker.com/installation/mac/

Note VirtualBox is one of the only modules blacklisted by the Linux kernel not for being proprietary (it's Open Source) but because it's terrible.

http://www.phoronix.com/scan.php?page=news_item&px=OTk5Mw

Re:Fig 1.0: Boot2docker compatibility and more by zenlikethat on Friday October 17, 2014 @05:12PM (#8473408)
Fig only requires boot2docker if you are not working directly on Linux, this is true for docker itself as well.

We agree that VBox is not ideal but it is free and we would like to have other options (Fusion, HyperV) available in the future as well.

Re:Fig 1.0: Boot2docker compatibility and more by cpuguy83 on Sunday October 19, 2014 @07:38AM (#8477972)
boot2docker is a tiny Linux distro and does not require any specific virtualization tool, or even virtualization at all.

For the sake of simplicity and distribution the OSX and Windows installers package boot2docker with Virtualbox.

Re:Fig 1.0: Boot2docker compatibility and more by samuel1604 on Friday October 17, 2014 @11:39PM (#8474534)
I use fig with volume from my mac under vmware without any problem