From afb98a87b6bd0c25c347e84dbf4827c3f5095cd2 Mon Sep 17 00:00:00 2001 From: Jo Kristian Bergum Date: Tue, 10 Dec 2024 09:58:03 +0100 Subject: [PATCH] Bind only to 127.0.0.1 in examples (#1594) --- billion-scale-image-search/README.md | 2 +- billion-scale-vector-search/README.md | 2 +- commerce-product-ranking/README.md | 2 +- custom-embeddings/README.md | 2 +- examples/document-processing/README.md | 2 +- examples/generic-request-processing/README.md | 2 +- .../README.md | 2 +- examples/in-context-learning/README.md | 2 +- examples/lucene-linguistics/README.md | 6 +++--- examples/multiple-bundles/README.md | 2 +- examples/part-purchases-demo/README.md | 2 +- examples/predicate-fields/README.md | 2 +- incremental-search/search-as-you-type/README.md | 2 +- incremental-search/search-suggestions/README.md | 2 +- model-inference/README.md | 2 +- msmarco-ranking/README.md | 2 +- multi-vector-indexing/README.md | 2 +- multilingual-search/README.md | 2 +- retrieval-augmented-generation/README.md | 2 +- text-image-search/README.md | 2 +- text-search/README.md | 2 +- transformers/README.md | 2 +- use-case-shopping/README.md | 2 +- vector-streaming-search/README.md | 2 +- 24 files changed, 26 insertions(+), 26 deletions(-) diff --git a/billion-scale-image-search/README.md b/billion-scale-image-search/README.md index 93058dd2d..9d6e314ee 100644 --- a/billion-scale-image-search/README.md +++ b/billion-scale-image-search/README.md @@ -146,7 +146,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/billion-scale-vector-search/README.md b/billion-scale-vector-search/README.md index a638e0209..88152cafe 100644 --- a/billion-scale-vector-search/README.md +++ b/billion-scale-vector-search/README.md @@ -63,7 +63,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/commerce-product-ranking/README.md b/commerce-product-ranking/README.md index 8cb30a66b..6bdb5745f 100644 --- a/commerce-product-ranking/README.md +++ b/commerce-product-ranking/README.md @@ -74,7 +74,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/custom-embeddings/README.md b/custom-embeddings/README.md index 712e312f7..6ef58ed0b 100644 --- a/custom-embeddings/README.md +++ b/custom-embeddings/README.md @@ -48,7 +48,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/examples/document-processing/README.md b/examples/document-processing/README.md index 143c57439..02e93be39 100644 --- a/examples/document-processing/README.md +++ b/examples/document-processing/README.md @@ -59,7 +59,7 @@ $ vespa config set target local ### Start a Vespa Docker container:
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/examples/generic-request-processing/README.md b/examples/generic-request-processing/README.md index da1b4995d..af3acdf81 100644 --- a/examples/generic-request-processing/README.md +++ b/examples/generic-request-processing/README.md @@ -32,7 +32,7 @@ $ podman info | grep "memTotal" $ git clone --depth 1 https://github.com/vespa-engine/sample-apps.git $ cd sample-apps/examples/generic-request-processing && mvn clean package $ docker run --detach --name vespa --hostname vespa-container \ - --publish 8080:8080 --publish 19071:19071 \ + --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \ vespaengine/vespa diff --git a/examples/http-api-using-request-handlers-and-processors/README.md b/examples/http-api-using-request-handlers-and-processors/README.md index 8220092e9..258831684 100644 --- a/examples/http-api-using-request-handlers-and-processors/README.md +++ b/examples/http-api-using-request-handlers-and-processors/README.md @@ -30,7 +30,7 @@ $ podman info | grep "memTotal" $ git clone --depth 1 https://github.com/vespa-engine/sample-apps.git $ cd sample-apps/examples/http-api-using-request-handlers-and-processors && mvn clean package $ docker run --detach --name vespa --hostname vespa-container \ - --publish 8080:8080 --publish 19071:19071 \ + --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \ vespaengine/vespa diff --git a/examples/in-context-learning/README.md b/examples/in-context-learning/README.md index e86ddb30e..ab3d2cb1d 100644 --- a/examples/in-context-learning/README.md +++ b/examples/in-context-learning/README.md @@ -28,7 +28,7 @@ Use the [quick start](https://docs.vespa.ai/en/vespa-quick-start.html) or [Vespa getting started](https://cloud.vespa.ai/en/getting-started) to deploy this - laptop example: ```shell podman run --detach --name vespa --hostname vespa-container \ - --publish 8080:8080 --publish 19071:19071 \ + --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \ vespaengine/vespa vespa deploy app --wait 600 diff --git a/examples/lucene-linguistics/README.md b/examples/lucene-linguistics/README.md index f8d3e7dd6..8176b98f0 100644 --- a/examples/lucene-linguistics/README.md +++ b/examples/lucene-linguistics/README.md @@ -30,9 +30,9 @@ brew install maven docker run --rm --detach \ --name vespa \ --hostname vespa-container \ - --publish 8080:8080 \ - --publish 19071:19071 \ - --publish 19050:19050 \ + --publish 127.0.0.1:8080:8080 \ + --publish 127.0.0.1:19071:19071 \ + --publish 127.0.0.1:19050:19050 \ vespaengine/vespa:8.237.19 # To observe the logs from LuceneLinguistics run in a separate terminal diff --git a/examples/multiple-bundles/README.md b/examples/multiple-bundles/README.md index c8a5a909c..2992da2ef 100644 --- a/examples/multiple-bundles/README.md +++ b/examples/multiple-bundles/README.md @@ -44,7 +44,7 @@ $ (cd sample-apps/examples/multiple-bundles-lib && mvn clean install)
 $ cd sample-apps/examples/multiple-bundles && mvn clean verify
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/examples/part-purchases-demo/README.md b/examples/part-purchases-demo/README.md index 41360961d..268de6827 100644 --- a/examples/part-purchases-demo/README.md +++ b/examples/part-purchases-demo/README.md @@ -38,7 +38,7 @@ for details and troubleshooting: $ git clone --depth 1 https://github.com/vespa-engine/sample-apps.git $ cd sample-apps/examples/part-purchases-demo $ docker run --detach --name vespa --hostname vespa-container \ - --publish 8080:8080 --publish 19071:19071 \ + --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \ vespaengine/vespa diff --git a/examples/predicate-fields/README.md b/examples/predicate-fields/README.md index 5970328d3..140845a1e 100644 --- a/examples/predicate-fields/README.md +++ b/examples/predicate-fields/README.md @@ -85,7 +85,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/incremental-search/search-as-you-type/README.md b/incremental-search/search-as-you-type/README.md index 21105c1b8..d27558d12 100644 --- a/incremental-search/search-as-you-type/README.md +++ b/incremental-search/search-as-you-type/README.md @@ -46,7 +46,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/incremental-search/search-suggestions/README.md b/incremental-search/search-suggestions/README.md index d16f73abf..dcfc6c625 100644 --- a/incremental-search/search-suggestions/README.md +++ b/incremental-search/search-suggestions/README.md @@ -93,7 +93,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/model-inference/README.md b/model-inference/README.md index 9ba4b09c5..5038ca4a8 100644 --- a/model-inference/README.md +++ b/model-inference/README.md @@ -64,7 +64,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/msmarco-ranking/README.md b/msmarco-ranking/README.md index f6e730885..172fd8544 100644 --- a/msmarco-ranking/README.md +++ b/msmarco-ranking/README.md @@ -92,7 +92,7 @@ Pull and start the vespa container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/multi-vector-indexing/README.md b/multi-vector-indexing/README.md index 8e245b93e..7642e4486 100644 --- a/multi-vector-indexing/README.md +++ b/multi-vector-indexing/README.md @@ -52,7 +52,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/multilingual-search/README.md b/multilingual-search/README.md index 9cbdc351e..410761a68 100644 --- a/multilingual-search/README.md +++ b/multilingual-search/README.md @@ -47,7 +47,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/retrieval-augmented-generation/README.md b/retrieval-augmented-generation/README.md index f692edda5..c2bc987f2 100644 --- a/retrieval-augmented-generation/README.md +++ b/retrieval-augmented-generation/README.md @@ -81,7 +81,7 @@ Pull and start the most recent Vespa container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa-rag --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/text-image-search/README.md b/text-image-search/README.md index ebc40021d..637c274e5 100644 --- a/text-image-search/README.md +++ b/text-image-search/README.md @@ -103,7 +103,7 @@ $ mvn clean package -U
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 vespaengine/vespa
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 vespaengine/vespa
 
Wait for the configserver to start: diff --git a/text-search/README.md b/text-search/README.md index 79c93ba4c..db22ab036 100644 --- a/text-search/README.md +++ b/text-search/README.md @@ -52,7 +52,7 @@ $ ./bin/convert-msmarco.sh
 $ docker run --detach --name vespa-msmarco --hostname vespa-msmarco \
-  --publish 8080:8080 --publish 19112:19112 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19112:19112 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/transformers/README.md b/transformers/README.md index cd54a0322..1b1e51306 100644 --- a/transformers/README.md +++ b/transformers/README.md @@ -56,7 +56,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/use-case-shopping/README.md b/use-case-shopping/README.md index 9b52c5ad9..7e2b1c135 100644 --- a/use-case-shopping/README.md +++ b/use-case-shopping/README.md @@ -56,7 +56,7 @@ Pull and start the vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa
 
diff --git a/vector-streaming-search/README.md b/vector-streaming-search/README.md index b14f2ae8f..b1f50b8d3 100644 --- a/vector-streaming-search/README.md +++ b/vector-streaming-search/README.md @@ -54,7 +54,7 @@ Pull and start the Vespa docker container image:
 $ docker pull vespaengine/vespa
 $ docker run --detach --name vespa --hostname vespa-container \
-  --publish 8080:8080 --publish 19071:19071 \
+  --publish 127.0.0.1:8080:8080 --publish 127.0.0.1:19071:19071 \
   vespaengine/vespa