Rkt integration with Packer

44 views
Skip to first unread message

Luke Farnell

unread,
Jul 19, 2017, 9:41:41 AM7/19/17
to rkt-dev
Hey Everyone,

I'm interested in creating a Rkt builder for packer.io and was curious about if Rkt has a API would can be used instead of  shelling out to the command line? Recently, someone from the packer core team is moving the docker builder to the API instead of the command line and I was hoping I could take the same approach for the Rkt builder. I do see that Rkt has the api-service but it looks like its read-only, so that wouldn't work. Anyone have any thoughts on what the best approach would be?

Thanks,
Luke

Angus Lees

unread,
Jul 20, 2017, 3:09:14 AM7/20/17
to Luke Farnell, rkt-dev
rkt deliberately doesn't have a server/client architecture - so whatever you use will end up building some sort of command line and fork/exec'ing it.

If you wanted to, you could certainly introduce some sort of daemon that received network messages before invoking rkt, but all you've done is complicate error recovery, lifetime management, permission handling, resource accounting, etc by separating the callee from the caller's process tree.  (Just saying...)

 - Gus

--
You received this message because you are subscribed to the Google Groups "rkt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rkt-dev+u...@googlegroups.com.
To post to this group, send email to rkt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rkt-dev/f01d6e34-25c1-445d-8b48-d7cd6ac15a9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg


Report this message as spam  
 
Reply all
Reply to author
Forward
0 new messages