Skip to content

Commit

Permalink
Bind only to 127.0.0.1 in examples (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo Kristian Bergum authored Dec 10, 2024
1 parent 62eda3c commit afb98a8
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion billion-scale-image-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion billion-scale-vector-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion commerce-product-ranking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion custom-embeddings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion examples/document-processing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $ vespa config set target local
### Start a Vespa Docker container:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion examples/generic-request-processing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 &amp;&amp; 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
</pre>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 &amp;&amp; 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion examples/in-context-learning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/lucene-linguistics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-bundles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $ (cd sample-apps/examples/multiple-bundles-lib &amp;&amp; mvn clean install)
<pre data-test="exec">
$ cd sample-apps/examples/multiple-bundles &amp;&amp; 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion examples/part-purchases-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion examples/predicate-fields/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion incremental-search/search-as-you-type/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion incremental-search/search-suggestions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion model-inference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion msmarco-ranking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Pull and start the vespa container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion multi-vector-indexing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion multilingual-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion retrieval-augmented-generation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Pull and start the most recent Vespa container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion text-image-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ $ mvn clean package -U

<pre data-test="exec">
$ 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
</pre>

Wait for the configserver to start:
Expand Down
2 changes: 1 addition & 1 deletion text-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $ ./bin/convert-msmarco.sh

<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion transformers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion use-case-shopping/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Pull and start the vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down
2 changes: 1 addition & 1 deletion vector-streaming-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Pull and start the Vespa docker container image:
<pre data-test="exec">
$ 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
</pre>

Expand Down

0 comments on commit afb98a8

Please sign in to comment.