projectatomic / atomicapp

[UNMAINTAINED] This is the reference implementation of the Nulecule container application Specification: Atomic App
102 stars 71 forks source link

Support running kubernetes from OpenShift template #131

Open aweiteka opened 9 years ago

aweiteka commented 9 years ago

Extend kubernetes provider so it could run an unaltered OpenShift template via inherit.

...
  - artifacts: 
      openshift: 
        - file:path/to/template.json
      kubernetes:
        inherit: openshift
...
vpavlin commented 9 years ago

This is a bit problematic - we can do that for simple templates like [1], but it would mean to reimplement generators [2].

Michal Fojtik suggested to use openshift running in Docker container and doing a call like:

cat foo.template | sudo docker exec -it openshift-origin bash -c "osc process -f -"

if osc is not available.

[1] https://github.com/openshift/origin/blob/master/examples/zookeeper/template.json#L362 [2] https://github.com/openshift/origin/blob/master/examples/sample-app/application-template-stibuild.json#L407 [3] https://github.com/openshift/origin/blob/master/pkg/template/generator/expressionvalue.go

aweiteka commented 9 years ago

Thoughts/summary:

aweiteka commented 9 years ago

@goern is this part of our CDK GA milestone story? I vote 'no' since we have not pulled this in as a primary user story.

goern commented 9 years ago

I see some feature misfit for that, referring to vpavlins comment and dont really see that this is part of the story...

goern commented 9 years ago

prerequisite: an OpenShift environment that is capable of processing the template inherited with the Atomic App.