-
Notifications
You must be signed in to change notification settings - Fork 115
[do not submit] enable embeddings resolver for custom dc #5927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| flags: | ||
| EnableEmbeddingsResolver: true | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -58,6 +58,11 @@ fi | |||||||||||||||||
|
|
||||||||||||||||||
| nginx -c /workspace/nginx.conf | ||||||||||||||||||
|
|
||||||||||||||||||
| MIXER_ARGS="" | ||||||||||||||||||
| if [[ $ENABLE_MODEL == "true" ]]; then | ||||||||||||||||||
| MIXER_ARGS="--embeddings_server_url=http://localhost:6060" | ||||||||||||||||||
| fi | ||||||||||||||||||
|
Comment on lines
+61
to
+64
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a string to build up command-line arguments is fragile and can lead to issues with word splitting, especially if arguments contain spaces. A more robust approach is to use a bash array. This will make the script more maintainable and less error-prone.
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
| /workspace/bin/mixer \ | ||||||||||||||||||
| --use_bigquery=false \ | ||||||||||||||||||
| --use_base_bigtable=false \ | ||||||||||||||||||
|
|
@@ -67,7 +72,9 @@ nginx -c /workspace/nginx.conf | |||||||||||||||||
| --use_sqlite=$USE_SQLITE \ | ||||||||||||||||||
| --use_cloudsql=$USE_CLOUDSQL \ | ||||||||||||||||||
| --cloudsql_instance=$CLOUDSQL_INSTANCE \ | ||||||||||||||||||
| --remote_mixer_domain=$DC_API_ROOT & | ||||||||||||||||||
| --feature_flags_path=mixer_custom.yaml \ | ||||||||||||||||||
| --remote_mixer_domain=$DC_API_ROOT \ | ||||||||||||||||||
| $MIXER_ARGS & | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||||||||||||
|
|
||||||||||||||||||
| envoy -l warning --config-path /workspace/esp/envoy-config.yaml & | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a best practice for text files to end with a newline character. Some tools may not process the last line correctly if it's missing. Please add a newline at the end of this file.