Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 118be93

Browse files
js_include -> js_import and other changes
1 parent b28564b commit 118be93

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

docker/build_artifacts/sagemaker/nginx.conf.template

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ http {
1515
include /etc/nginx/mime.types;
1616
default_type application/json;
1717
access_log /dev/stdout combined;
18-
js_include tensorflow-serving.js;
18+
js_import tensorflowServing.js;
1919

2020
upstream tfs_upstream {
2121
%TFS_UPSTREAM%;
@@ -44,14 +44,17 @@ http {
4444
}
4545

4646
location /ping {
47+
js_content tensorflowServing.ping;
4748
%FORWARD_PING_REQUESTS%;
4849
}
4950

5051
location /invocations {
52+
js_content tensorflowServing.invocations;
5153
%FORWARD_INVOCATION_REQUESTS%;
5254
}
5355

5456
location /models {
57+
js_content tensorflowServing.models;
5558
proxy_pass http://gunicorn_upstream/models;
5659
}
5760

@@ -62,3 +65,8 @@ http {
6265
keepalive_timeout 3;
6366
}
6467
}
68+
69+
export default {invocations, ping, ping_without_model, return_error,
70+
tfs_json_request, make_tfs_uri, parse_custom_attributes,
71+
json_request, is_tfs_json, is_json_lines, generic_json_request,
72+
json_lines_request, csv_request};

docker/build_artifacts/sagemaker/tensorflow-serving.js renamed to docker/build_artifacts/sagemaker/tensorflowServing.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,8 @@ function csv_request(r) {
232232
builder.push(']}')
233233
tfs_json_request(r, builder.join(''))
234234
}
235+
236+
export default {invocations, ping, ping_without_model, return_error, tfs_json_request,
237+
make_tfs_uri, parse_custom_attributes,
238+
json_request, is_tfs_json, is_json_lines,
239+
generic_json_request, json_lines_request, csv_request}

0 commit comments

Comments
 (0)