You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2022/03/04 14:18:35 UTC
[sling-org-apache-sling-starter] branch master updated: Fix docker port mapping in README.md
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter.git
The following commit(s) were added to refs/heads/master by this push:
new 820e2d7 Fix docker port mapping in README.md
820e2d7 is described below
commit 820e2d729b039f24a46ed7d90197c5415041f9e2
Author: Tomasz Michalak <to...@gmail.com>
AuthorDate: Wed Mar 2 13:32:21 2022 +0100
Fix docker port mapping in README.md
---
README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 6f69a3f..0941083 100644
--- a/README.md
+++ b/README.md
@@ -53,13 +53,13 @@ The following tags are supported
The Docker image only needs the port 8080 to be exposed
```
-$ docker run --rm -p 8080 apache/sling:snapshot
+$ docker run --rm -p 8080:8080 apache/sling:snapshot
```
By default the image launches the `oak_tar` aggregate, which uses local persistence. The aggregate to launch can be selected by passing an additional argument to the image, e.g.:
```
-$ docker run --rm -p 8080 apache/sling:snapshot oak_mongo
+$ docker run --rm -p 8080:8080 apache/sling:snapshot oak_mongo
```
Currently only the `oak_tar` and `oak_mongo` aggregates are supported.
@@ -68,7 +68,7 @@ For persisting the runtime data is is recommended to mount `/opt/sling/launcher`
```
$ docker volume create sling-launcher
-$ docker run --rm -p 8080 -v sling-launcher:/opt/sling/launcher apache/sling:snapshot
+$ docker run --rm -p 8080:8080 -v sling-launcher:/opt/sling/launcher apache/sling:snapshot
```
The [docker/](docker/) directory contains sample files related to container-based development.
@@ -79,7 +79,7 @@ This module can optionally build a Docker image. This is achieved by running a b
```
$ mvn clean package -Ddocker.skip=false -Ddocker.label=local
-$ docker run --rm -p 8080 apache/sling:local
+$ docker run --rm -p 8080:8080 apache/sling:local
```
## Extending the Sling Starter