On Thu, May 24, 2018 at 5:02 PM, Brian Keyes <[email protected]> wrote:

> I have an STI image that I have added boto and aws cli to the
> requiremtns.txt file
>
> I can launch this in the Openshift CLI with "oc new-app
> https://github.com/bwees/os-sample-python.git";
>

i can't access that repo so i'm not sure what your resulting image is
actually doing?



> I then in the GUI get to the container shell and run this script manually
> in python
>
>
> import boto
> from boto.s3.connection import OrdinaryCallingFormat
>
> conn = boto.connect_s3(calling_format=OrdinaryCallingFormat())
>
> count = 0
>
> print ("Bucket names: ")
>
> for bucket in conn.get_all_buckets():
>     print (bucket.name)
>     count = count + 1
>
> print ("Total count of S3 bucket is ", count)
>
>
> how can I combine this into one  automated solution?
>

what are you trying to accomplish?  the above code looks more like a single
execution flow than a long lived application.




>
> thanks !!!
>
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>


-- 
Ben Parees | OpenShift
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to