Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At work we don't have the fancy Kubernetes infrastructure but we do use containers. I like the simplicity of keter and I am interested in adding support for docker "pods".
This pull request adds another stanza to the config.
pod
. Instead of a bundle we can now putsomeappsname.pod.json
without bundle in the incoming directory.In case there is a bundle we can use any stanzas as before. In case of the
pod.json
case we are allowed to only use typepod
.containers
lists every container used in the pod. You have to assign animage
and may optionally specifyrepository
from where to pull the image.The
web-container
field has the usual options from thewebapp
stanza except for aname
field which indicates which is the root container, to which the requests are routed.On start we pull all images and make sure the user didn't specify cycles in the 'links' fields. We start the containers in the right order. All containers join a docker network with the name
<appname>_network
. For volume mounts we create empty containers and deterministically assign names to them so stored data persists over docker restarts.There is a new type
RunningPod
which has a list ofMonitoredProcess
which monitor the docker processes for the containers. From here on out it's almost the same as before modulo some new fields in various types.The patch isn't done and isn't working yet. But I though I would post here to have some discussions. I wanted to know what you think first.