Skip to content
No description, website, or topics provided.
Ruby Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
boot2docker
cephdev
coreos
godev
kindev
mybase
redodev
.gitignore
README.md
Vagrantfile.in
generate_vagrantfile

README.md

My Vagrant/Docker Workflow

Every machine has a Vagrantfile and Dockerfile associated with it.

install the nfs-capable boot2docker or coreos VM (for OSX)

cd boot2docker # or cd coreos
vagrant up

For the base machine, the following has to be executed first

cd mybase
./generate_dockerfile

For mybase and any other docker-based machine

cd machinename
../generate_vagrantfile
vagrant up --provider=docker

The above creates an image from the Dockerfile as long as the d.build_dir lines are uncommented from the Vagrantfile. For example:

Vagrant.configure("2") do |config|
  config.vm.provider "docker" do |d|
    d.build_dir = "."
    d.build_args = ["--tag=repo/image:tag"]
  end
end

The above specifies that an image named repo/image with tag tag will be created out of the Dockerfile in the directory. See here for more.

You can’t perform that action at this time.