File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 100
100
docker run --rm -t --read-only --net=none \
101
101
-e HOME=/tmp -e KAGGLE_DATA_PROXY_TOKEN=test-key \
102
102
-e KAGGLE_USER_SECRETS_TOKEN_KEY=test-secrets-key \
103
- -e KAGGLE_URL_BASE=http://127.0.0.1:8001 \
103
+ -e KAGGLE_URL_BASE=http://127.0.0.1:0 \
104
104
-e KAGGLE_DATA_PROXY_URL=http://127.0.0.1:8000 \
105
105
-e KAGGLE_DATA_PROXY_PROJECT=test \
106
106
-e TF_FORCE_GPU_ALLOW_GROWTH=true \
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ def get_response(self):
72
72
threading .Thread (target = httpd .serve_forever ).start ()
73
73
74
74
try :
75
+ # Make sure this server is pointed to by clients (the port may have been dynamically chosen):
76
+ env .set (_KAGGLE_URL_BASE_ENV_VAR_NAME , "http://" + httpd .server_address [0 ]+ ":" + str (httpd .server_address [1 ]))
75
77
client_func ()
76
78
finally :
77
79
httpd .shutdown ()
Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ def get_response(self):
66
66
threading .Thread (target = httpd .serve_forever ).start ()
67
67
68
68
try :
69
+ # Make sure this server is pointed to by clients (the port may have been dynamically chosen):
70
+ env .set (_KAGGLE_URL_BASE_ENV_VAR_NAME , "http://" + httpd .server_address [0 ]+ ":" + str (httpd .server_address [1 ]))
69
71
client_func ()
70
72
finally :
71
73
httpd .shutdown ()
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ def get_response(self):
55
55
threading .Thread (target = httpd .serve_forever ).start ()
56
56
57
57
try :
58
+ # Make sure this server is pointed to by clients (the port may have been dynamically chosen):
59
+ env .set (_KAGGLE_URL_BASE_ENV_VAR_NAME , "http://" + httpd .server_address [0 ]+ ":" + str (httpd .server_address [1 ]))
58
60
client_func ()
59
61
finally :
60
62
httpd .shutdown ()
You can’t perform that action at this time.
0 commit comments