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 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?

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

Reply via email to