host: Remove dead code.

First interface isn't used anymore, the second one was used for mocking in unit
tests.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Godeps: Switch to upstream github.com/docker/docker

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Godeps: Tweak docker build tags to fix build

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Merge pull request #580 from flynn/godeps-docker

Godeps: Switch to upstream github.com/docker/docker
Merge pull request #579 from flynn/remove-dead-code

host: Remove dead code.
slugbuilder: Use npm-next branch of nodejs buildpack

This installs a newer, less broken version of npm.

https://github.com/heroku/heroku-buildpack-nodejs/compare/v60...fae41898 

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Merge pull request #583 from flynn/npm-next

slugbuilder: Use npm-next branch of nodejs buildpack
test: Add logging to test/apps/signal

Signed-off-by: Lewis Marshall <lewis@lmars.net>
test: Remove docker backend reference

Signed-off-by: Lewis Marshall <lewis@lmars.net>
test: Dump logs from all booted instances

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #582 from flynn/test-debug

Improve CI debugging
host: combined the AddJob and SetInternalIP functions, since they both cause persistence for the host state to be fired and are presently never used in isolation anyway.

Signed-off-by: Eric Myhre <eric@flynn.io>
host: Begin transforming host state serialization to use boltdb for persistence instead of flat files.

Signed-off-by: Eric Myhre <eric@flynn.io>
host: panic on errors persisting host state.

Signed-off-by: Eric Myhre <eric@flynn.io>
host: Replace restore process to match the converted persist process.  Factor persistence db initialization into separate method.  Switch backend restore interface to also take blob.

Signed-off-by: Eric Myhre <eric@flynn.io>
host: Only intialize persistence db once.

Signed-off-by: Eric Myhre <eric@flynn.io>
host: Move persistence path to host state setup time, and ensure it has a default when starting the host executable.

This is mostly clarifying behavior because previously persistence would do some rather odd things if restore hadn't previously been called.

Also, bring go-check into the host state tests, because these tests are touching the filesystem and crave tmpdirs.

Signed-off-by: Eric Myhre <eric@flynn.io>
host: Add test covering state persistence and restore.  Fix things uncovered, namely silly mutexes.

Signed-off-by: Eric Myhre <eric@flynn.io>
host: Change filenames for host state.  (Attempting to open one of the old json files will cause boltdb to report an error; this makes that migration forgetful, but survivable.  And json is no longer an accurate description.)

Signed-off-by: Eric Myhre <eric@flynn.io>
host: When restoring saved state, do not regard EOF as a failure.  Integration tests now pass again.

Signed-off-by: Eric Myhre <eric@flynn.io>