Also check out: https://github.com/sclorg/s2i-python-container/tree/master/3.6 <https://github.com/sclorg/s2i-python-container/tree/master/3.6>
which describes more about the Python S2I image in particular. You can see the code there for it as well. Graham > On 31 May 2018, at 8:06 am, Graham Dumpleton <[email protected]> wrote: > > If you want to supply your own way of starting up your application when using > Python S2I, supply an executable 'app.sh' file. This should be a shell > script which runs your application. Ensure that the final application is run > using 'exec'. Eg. > > #!/bin/bash > > exec python my-custom-app.py > > Again point you to: > > https://www.openshift.com/deploying-to-openshift/ > <https://www.openshift.com/deploying-to-openshift/> > > to understand how S2I works. > > Graham > >> On 31 May 2018, at 3:55 am, Brian Keyes <[email protected] >> <mailto:[email protected]>> wrote: >> >> ok I found in the console an area to add environmental variables , but what >> is the value for "APP_FILE"? is it the name of the executable file i the git >> hub repo as in https://github.com/fusor/s2i-apb/blob/master/s2i/bin/run >> <https://github.com/fusor/s2i-apb/blob/master/s2i/bin/run> >> >> so the value should be >> "run"???????????????????????????????????????????????????????????? >> >> On Wed, May 30, 2018 at 3:27 PM, Brian Keyes <[email protected] >> <mailto:[email protected]>> wrote: >> I am attempting to get just one of the repos to run so I can attempt to >> reverse engineer it to work with what I have . >> >> but how would I resolve this error >> >> >> >> >> ERROR: don't know how to run your application. >> Please set either APP_MODULE, APP_FILE or APP_SCRIPT environment variables, >> or create a file 'app.py' to launch your application. >> >> I have been using the meathod of just renaming my exe to app.py up till now >> but I want to investigate how to do this another way >> >> were exactly do I set the variables here and what do I set them to ? >> >> this is the git hub repo I am working with >> >> >> >> https://github.com/fusor/s2i-apb.git <https://github.com/fusor/s2i-apb.git> >> >> thanks !! >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> Brian Keyes >> Systems Engineer, Vizuri >> 703-855-9074(Mobile) >> 703-464-7030 x8239 (Office) >> >> FOR OFFICIAL USE ONLY: This email and any attachments may contain >> information that is privacy and business sensitive. Inappropriate or >> unauthorized disclosure of business and privacy sensitive information may >> result in civil and/or criminal penalties as detailed in as amended Privacy >> Act of 1974 and DoD 5400.11-R. >> >> >> >> >> -- >> Brian Keyes >> Systems Engineer, Vizuri >> 703-855-9074(Mobile) >> 703-464-7030 x8239 (Office) >> >> FOR OFFICIAL USE ONLY: This email and any attachments may contain >> information that is privacy and business sensitive. Inappropriate or >> unauthorized disclosure of business and privacy sensitive information may >> result in civil and/or criminal penalties as detailed in as amended Privacy >> Act of 1974 and DoD 5400.11-R. >> >> _______________________________________________ >> users mailing list >> [email protected] <mailto:[email protected]> >> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> <http://lists.openshift.redhat.com/openshiftmm/listinfo/users>
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
