bazooka-ci / bazooka

Continuous Integration and Continuous Deployment Server
http://docs.bazooka-ci.io/
MIT License
60 stars 5 forks source link

Add bzk service command #189

Closed julienvey closed 9 years ago

julienvey commented 9 years ago

Closes #163 #170 #173

Usage: bzk service  COMMAND [arg...]

Manage bazooka service (start, stop, status, upgrade...)

Commands:
  start        Start bazooka
  restart      Restart bazooka
  upgrade      Upgrade bazooka to the latest version
  stop         Stop bazooka
  status       Get bazooka status
julienvey commented 9 years ago

Updated. @jawher can you review again ?

jawher commented 9 years ago

I just tried the following:

$ bzk service stop
$ bzk service start --tag=DEV

And I got this message:

2015/04/27 20:38:16 Container bzk_mongodb is not Up, starting it 2015/04/27 20:38:16 API error (404): Cannot start container 11a2efa7b37a8f3397bd14f0f28011f7d471710b965db058e4b5e4142bd2c8e9: [8] System error: stat /mnt/sda1/var/lib/docker/vfs/dir/ca811f4d0e6a13a107b6fb7fa659d320aa76b7a4fabab9cc2b3fea53a80b968b: no such file or directory

I know that there is no bazooka images tagged with DEV, but I wasn't expecting this cryptic error message.

The said container is the mongodb container. I think that stopping it deleted its volumes (which shouldn't be possible before deleting the container itself).

jawher commented 9 years ago

After deleting the mongo container and trying to start bazooka again with :

bzk service start

I get this error:

2015/04/27 20:45:39 Container bzk_mongodb not found, Starting it 2015/04/27 20:45:39 Container bzk_server found, but not in the right version, restarting it 2015/04/27 20:45:39 Restarting Container bzk_server Pulling repository bazooka/server 2015/04/27 20:45:45 Tag DEV not found in repository bazooka/server

It is trying to use the DEV tag, but I didn't pass any tag to the start command.

jawher commented 9 years ago

LGTM.