[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to create s2i application in OpenShift without language detection?





On Wed, Nov 4, 2015 at 7:47 AM, Fernando Lozano <flozano redhat com> wrote:
Hi Ben,

On Wed, Nov 4, 2015 at 7:22 AM, Fernando Lozano <flozano redhat com> wrote:
Hi Lorenz,

Yes it is possible. You have to add the desired s2i builder image stream name concatenated with a tilde (~) concatenated with the git repo url.

To get the is names, use "oc get is -n openshift". Not all those are s2i builder images but it will be pretty obvious which are and which aren't by their names.


​you can also directly reference a docker image on a registry using the ~ syntax, eg:


Nice to know. But this image still has to be a s2i builder image, right?

Assuming you want to do an s2i build, yes it needs to implement the s2i functionality.

new-app also supports defining docker type builds, so if your repo includes a Dockerfile and you specify --strategy=docker then you'll get that instead of an s2i build.  There are more details here:

https://docs.openshift.org/latest/dev_guide/new_app.html#using-the-cli

 


[]s, Fernando Lozano




--
Ben Parees | OpenShift


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]