Apache Sling is a web framework that uses a Java Content Repository, such as Apache Jackrabbit, to store and manage content.
Sling applications use either scripts or Java servlets, selected based on simple name conventions, to process HTTP requests in a RESTful way.
The embedded Apache Felix OSGi framework and console provide a dynamic runtime environment, where code and content bundles can be loaded, unloaded and reconfigured at runtime.
As the first web framework dedicated to JSR-170 Java Content Repositories, Sling makes it very simple to implement simple applications, while providing an enterprise-level framework for more complex applications.
In order to run a container with our image, execute:
docker run --name my-sling-container apachesling/sling
The image exposes port
8080 and mounts a volume at
/opt/sling/sling. You can control the JVM parameters by setting the JAVA_OPTS environment variable and the options passed to Sling by setting the SLING_OPTS environment variable.
A more complex example would be
docker run -d -p 8080:8080 -v /srv/docker/sling:/opt/sling/sling -e JVM_OPTS=-Xm1g --name my-sling-container apachesling/sling
For questions, please use the Apache Sling user's mailing list.
For bug reports, please use the Apache Sling issue tracker.