Ok what I will do is rename the app.py to run and change the path in git
hub to be  s2i/bin/run.


I am not sure I understand what you mean by

"Use exec for the call"


thanks again !!


On Wed, May 30, 2018 at 12:26 PM, Frederic Giloux <[email protected]>
wrote:

> Hi Brian
>
> A file called run is expected not a directory.
> You may have a simple shell script named run that calls your programm. Use
> exec for the call.
>
> Regards,
>
> Frédéric
>
> On Wed, 30 May 2018, 18:19 Brian Keyes, <[email protected]> wrote:
>
>> thanks for the quick reply ,
>>
>> What my goal is to have my script run when the final container in
>> launched , right now I have this in the  git hub repo under
>> s2i/bin/run/app.py
>>
>> I get this error when I attempt to run this in openshift portal
>>
>>
>> /usr/bin/container-entrypoint: line 2: /tmp/scripts/run: Is a directory
>>
>>
>>
>> /usr/bin/container-entrypoint: line 2: exec: /tmp/scripts/run: cannot
>> execute: Is a directory
>>
>>
>> I am thinking that the paths here are in the container right?
>>
>> thanks again
>>
>>
>> On Wed, May 30, 2018 at 12:09 PM, Frederic Giloux <[email protected]>
>> wrote:
>>
>>> Hi Brian
>>>
>>> If you want your script to be executed by new builds it should be named
>>> assemble. It can then call the original assemble script, that you may have
>>> renamed, a python programm or any other thing you need. The run script is
>>> called when the final container is launched not during the build.
>>>
>>> Regards,
>>>
>>> Frédéric
>>>
>>> On Wed, 30 May 2018, 17:51 Brian Keyes, <[email protected]> wrote:
>>>
>>>> I have an python script in my git hub repo
>>>>
>>>> I want to run that script when I run "oc new-build"
>>>>
>>>> Do I simply place the script in the git hub under   .s2i/bin/run  ?
>>>>
>>>> is there anything else I have to do????
>>>>
>>>> thanks
>>>>
>>>> _______________________________________________
>>>> users mailing list
>>>> [email protected]
>>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>>
>>>
>>
>>
>> --
>> 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]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to