First implementation of multi-container ready haconiwa #65

Merged
merged 10 commits into from Jan 13, 2017

Projects

None yet

1 participant

@udzura
Member
udzura commented Dec 26, 2016

The example says itself:

Haconiwa.define do |config|
  config.daemonize!

  root = Pathname.new("/var/lib/haconiwa/8cfccb3d")
  config.chroot_to root

  3.times do |i|
    config.define do |c|
      suffix = UUID.secure_uuid("%x%x")
      c.name = "haconiwa-#{suffix}"
      c.init_command = ["/bin/sleep", (30 + i*10).to_s]
      c.command.set_stdout(file: "/tmp/test-#{suffix}.stdout")
      c.command.set_stderr(file: "/tmp/test-#{suffix}.stderr")
    end
  end
end

This implementation may have many bugs, so this is just a small step.

udzura added some commits Dec 21, 2016
@udzura udzura Class will be splitted 95e96e3
@udzura udzura (Maybe) Produces multi containers fa1fd84
@udzura udzura Introduce a supercontainer process 58ba651
@udzura udzura Add the multi containers sample d0ddbda
udzura added some commits Dec 26, 2016
@udzura udzura Add CI target 9e9d7d1
@udzura udzura Implement other commands 0f075e0
@udzura udzura Enable to mark bootstrap-skipped container 7a6d18d
@udzura udzura Unsupport `haconiwa ps` and its test b3ec05f
@udzura udzura Fix some test [WIP] 8d01780
@udzura udzura haconiwa kill wait time is changed to 10s by default
- And is controllable by options
1cdef55
@udzura
Member
udzura commented Jan 13, 2017

CI passed(I did not say that it worked)

@udzura udzura merged commit 3f83f7a into multicontainer Jan 13, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@udzura udzura deleted the haconiwa-compose branch Jan 13, 2017
@udzura udzura changed the title from [WIP]First implementation of multi-container ready haconiwa to First implementation of multi-container ready haconiwa Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment