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/21 15:42:35 UTC
[sling-site] 10/11: Getting started: update for Sling 12
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-site.git
commit 9b212333e38e198309d1de0ef9dfae189e405c25
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Mar 21 16:25:23 2022 +0100
Getting started: update for Sling 12
---
.../jbake/content/documentation/getting-started.md | 25 +++++++++++-----------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/src/main/jbake/content/documentation/getting-started.md b/src/main/jbake/content/documentation/getting-started.md
index 5521570..d9f4dca 100644
--- a/src/main/jbake/content/documentation/getting-started.md
+++ b/src/main/jbake/content/documentation/getting-started.md
@@ -12,30 +12,31 @@ There are different ways to get Apache Sling running. You can either use Docker,
## Sling Docker Image
-The easiest way to get Apache Sling running is to use Docker. If you don't have Docker installed
+The preferred way to get Apache Sling running is to use Docker. If you don't have Docker installed
you can skip to the next section.
We maintain a docker image of our latest release at [Apache Sling Docker Image](https://hub.docker.com/r/apache/sling).
The simplest command to launch Sling is:
+ docker run -p 8080:8080 -v /tmp/sling:/opt/sling/sling apache/sling:${sling_releaseVersion}
- docker run -p 8080:8080 -v /tmp/sling:/opt/sling/sling apache/sling
-
-This will start the latest Apache Sling distribution and mount the Sling directory to */tmp/sling*
+This will start the latest released version of Apache Sling distribution and mount the Sling directory to */tmp/sling*
on your machine. Make sure that your docker configuration allows this or change to a different
directory.
-## Sling Download
+## Sling Features
+
+Another option is to download the latest released Apache Sling standalone feature archive and the
+Sling Feature Launcher from our [Downloads](/downloads.cgi) section. Once you have downloaded them,
+unzip the Feature Launcher Archive and ensure that you have Java ${sling_minJavaVersion} or later
+installed.
-Another option is to download the latest released Apache Sling standalone application from our
- [Downloads](/downloads.cgi) section. Once you have downloaded the application make sure that you have
- Java ${sling_minJavaVersion} or later installed and run Sling with:
+Launch Sling with
-
- java -jar org.apache.sling.starter-${sling_releaseVersion}.jar
+ ./org.apache.sling.feature.launcher-*/bin/launcher -f org.apache.sling.starter-${sling_releaseVersion}-oak_*_far.far
-Starting the Sling application creates the Sling directory name *sling* in the same directory
+Starting the Sling application creates the Sling directory name *launcher* in the same directory
from where you started the above command.
@@ -46,8 +47,6 @@ You can run Sling on [Karaf](https://karaf.apache.org) as well by either startin
# Explore Sling
Once Sling is started, you can access Sling at [http://localhost:8080](http://localhost:8080).
- Starting Sling might take some seconds, so if you get an error in your browser that some
- service is missing, simply reload the page a little bit later.
The Sling directory contains a directory *logs*. This directory contains all the log files
created by Sling. The main log file is called *error.log*.