Skip to content

octohost/octovagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

octovagrant

Some helpful files when using octohost with Vagrant.

# Install Docker Mac binary
brew tap homebrew/binary
brew install docker
brew install direnv # More info here: https://github.com/zimbatm/direnv

NOTE: If you are using Vagrant 1.6+, the Vagrantfile will work without modification. If you're using < 1.6 then you can find the necessary URL at Vagrant Cloud.

There are two ways to proceed from here:

Use the already built Vagrant box.

vagrant up # The box will be downloaded, verified and installed.
vagrant ssh -c "curl -L https://github.com/{your-username}.keys >> /home/vagrant/.ssh/authorized_keys"
cat ~/.ssh/{your-key.pub} | ssh [email protected] "sudo gitreceive upload-key {your-name}"
git clone https://github.com/octohost/harp.git && cd harp
git remote add octo [email protected]:harp-test.git
git push octo master
lynx http://harp-test.octodev.io

Build your own box using Chef.

Once you have your octohost built and the box installed using these instructions

Once you've built it.

Then you can cd into this directory:

[] darron@~/Dropbox/src: cd octovagrant/
.envrc is blocked from loading. Run `direnv allow` to approve it's content for loading.
[] darron@~/Dropbox/src/octovagrant: direnv allow
direnv: reloading
direnv: loading .envrc
direnv export: ~DOCKER_HOST
[] darron@~/Dropbox/src/octovagrant: vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'octohost'...
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] VM already provisioned. Run `vagrant provision` or use `--provision` to force it
[] darron@~/Dropbox/src/octovagrant: docker ps
CONTAINER ID        IMAGE                       COMMAND                CREATED             STATUS              PORTS                  NAMES

76d3de92d2f9 octohost/tentacles:latest /bin/sh -c 'bundle e 15 minutes ago Up 15 minutes 0.0.0.0:82->5000/tcp desperate_einstein

This is in the spirit of dvm - which is docker without the octohost web focus.

You should be able to use both dvm and octohost using these instructions.

Releases

No releases published

Packages

No packages published