-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[RFE] script for generating templates/pods in YAML format #12402
Comments
i remember @rhcarvalho and @php-coder did something similar during a hackaton, not sure what the current official status of that is. |
@phracek can you describe a bit more your workflow and where is your pain point? A more precise suggestion or pointer to some existing tool depends on what you need. |
@rhcarvalho Ok, I will describe it a little bit more. Let's say I am a maintainer of some service like http, postfix, etc. I I have build docker image. It does not matter whether at my local repository or even on Docker Hub. I would like to create a POD with one deployment and one or two containers. Unfortunately I don't have more know-how to write it. The tool could help me a bit during the start. |
"oc run yourimage" |
Ca I run two containers in one POD? |
I guess, some script/binary would be welcome to help OpenShift users how to deploy their application properly. It would be awesome tool. |
as far as i know, oc run is for running single containers in a pod, but new-app allows you to run multiple containers in a pod: |
@phracek once you have something running with either https://docs.openshift.org/latest/dev_guide/templates.html#export-as-template Note that the template may still require some tweaks, like parameterizing certain values. The use case described is so generic that I cannot imagine a script/tool that would automatically and correctly do what you expect. Have you tried looking at existing example templates and basing your own templates on them? |
For simple cases there is |
@php-coder I have created a template like this https://github.com/container-images/container-image-template/blob/master/openshift-template.yml.
Does it make sense now? |
i think you might want to look at the opencompose project, which you can use to produce resource files that you can deploy on openshift: |
I work in modularity team and playing with docker files and OpenShift.
I have to write YML files for templates or even pods. Like POD -> Deployment -> two containers.
It would be nice to have a script or generated which can help me to generate a template, pods, etc.
Current Result
I did not find any script which can do it.
But maybe you have different tools for it.
I will share definitely information from your team to the others if you have something like this.
The text was updated successfully, but these errors were encountered: