summaryrefslogtreecommitdiff
path: root/doc/forum/Getting_Info_from_containers/comment_2_347f67e1be11f69fab571d8f9e7612b5._comment
diff options
context:
space:
mode:
authorNicolas.Schodet2019-04-16 17:23:16 +0000
committeradmin2019-04-16 17:23:16 +0000
commit39db0e4fad83c978126d8585379eb506939b9e77 (patch)
tree40ef4f7521030e942c9a5e27b1d0598ac34c6395 /doc/forum/Getting_Info_from_containers/comment_2_347f67e1be11f69fab571d8f9e7612b5._comment
parente77deb1ef29201ec2a957e17b613958823cca8bb (diff)
Added a comment: containerToHost?
Diffstat (limited to 'doc/forum/Getting_Info_from_containers/comment_2_347f67e1be11f69fab571d8f9e7612b5._comment')
-rw-r--r--doc/forum/Getting_Info_from_containers/comment_2_347f67e1be11f69fab571d8f9e7612b5._comment28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/forum/Getting_Info_from_containers/comment_2_347f67e1be11f69fab571d8f9e7612b5._comment b/doc/forum/Getting_Info_from_containers/comment_2_347f67e1be11f69fab571d8f9e7612b5._comment
new file mode 100644
index 00000000..5db271fd
--- /dev/null
+++ b/doc/forum/Getting_Info_from_containers/comment_2_347f67e1be11f69fab571d8f9e7612b5._comment
@@ -0,0 +1,28 @@
+[[!comment format=mdwn
+ username="Nicolas.Schodet"
+ avatar="http://cdn.libravatar.org/avatar/0d7ec808ec329d04ee9a93c0da3c0089"
+ subject="containerToHost?"
+ date="2019-04-16T17:23:16Z"
+ content="""
+Would it be possible to add a `containerToHost` wrapper that takes a container
+and returns a host?
+
+It would be something like this:
+
+ hosts :: [Host]
+ hosts =
+ [ myHost
+ , myContainerHost
+ ]
+
+ myHost = host \"myhost.mydomain\" $ props
+ & ...
+ & myContainerSpawn myContainer
+
+ myContainer :: Systemd.Container
+ myContainer = Systemd.debContainer \"mycontainer\" $ props
+ & ...
+
+ myContainerHost = containerToHost \"mycontainer.mydomain\" myContainer
+
+"""]]