Skip to content

Commit c67e05e

Browse files
l3enderarthurdm
andauthored
Correct openliberty doc for server feature configuration (#1863)
Co-authored-by: Arthur De Magalhaes <[email protected]>
1 parent 8082bd7 commit c67e05e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

open-liberty/content.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,20 @@ Please note that this pattern will duplicate the docker layers for those artifac
4949

5050
There are multiple tags available in this repository.
5151

52-
The `kernel` image contains just the Liberty kernel and no additional runtime features. This image is the recommended basis for custom built images, so that they can contain only the features required for a specific application. For example, the following Dockerfile starts with this image, copies in the `server.xml` that lists the features required by the application, and then uses the `configure.sh` script to download those features from the online repository.
52+
The `kernel-slim` image contains just the Liberty kernel and no additional runtime features. This image is the recommended basis for custom built images, so that they can contain only the features required for a specific application. For example, the following Dockerfile starts with this image, copies in the `server.xml` that lists the features required by the application, and then uses the `features.sh` script to download those features from the online repository.
5353

5454
```dockerfile
55-
FROM %%IMAGE%%:kernel
56-
COPY --chown=1001:0 Sample1.war /config/dropins/
55+
FROM %%IMAGE%%:kernel-slim
56+
57+
# Add server configuration
5758
COPY --chown=1001:0 server.xml /config/
59+
# This script will add the requested XML snippets to enable Liberty features and grow image to be fit-for-purpose using featureUtility.
60+
# Only available in 'kernel-slim'. The 'full' tag already includes all features for convenience.
61+
RUN features.sh
62+
63+
# Add the application
64+
COPY --chown=1001:0 Sample1.war /config/dropins/
65+
# This script will add the requested server configurations, apply any interim fixes and populate caches to optimize runtime.
5866
RUN configure.sh
5967
```
6068

0 commit comments

Comments
 (0)