Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First implementation of multi-container ready haconiwa #65

Merged
merged 10 commits into from Jan 13, 2017

Conversation

@udzura
Copy link
Member

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 4 commits Dec 21, 2016
udzura added 6 commits Dec 26, 2016
- And is controllable by options
@udzura

This comment has been minimized.

Copy link
Member Author

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
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 [WIP]First implementation of multi-container ready haconiwa First implementation of multi-container ready haconiwa Jan 13, 2017
udzura added a commit that referenced this pull request Apr 13, 2017
[WIP]First implementation of multi-container ready haconiwa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.