File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def create_test_namespace(self):
46
46
return self .namespace
47
47
48
48
def run_mnist_raycluster_sdk (self ):
49
- ray_image = "quay.io/project-codeflare/ray:latest-py39-cu118"
49
+ ray_image = os . getenv ( "RAY_IMAGE" )
50
50
host = os .getenv ("CLUSTER_HOSTNAME" )
51
51
52
52
ingress_options = {}
Original file line number Diff line number Diff line change
1
+ import os
1
2
import random
2
3
import string
3
4
4
- def read_file (file_name ):
5
- try :
6
- with open (file_name , 'rb' ) as file :
7
- return file .read ()
8
- except IOError as e :
9
- raise e
5
+ def get_ray_image ():
6
+ default_ray_image = "quay.io/project-codeflare/ray:latest-py39-cu118"
7
+ return os .getenv ("RAY_IMAGE" , default_ray_image )
10
8
11
9
12
- alphabet = string .ascii_lowercase + string .digits
13
10
def random_choice ():
11
+ alphabet = string .ascii_lowercase + string .digits
14
12
return '' .join (random .choices (alphabet , k = 5 ))
You can’t perform that action at this time.
0 commit comments