From f30bfdc0c29fcf2eaab9f696ac0f548aa273f135 Mon Sep 17 00:00:00 2001 From: rymsha Date: Thu, 31 Aug 2023 14:09:59 +0200 Subject: [PATCH] Second attempt to fix hardcoded version #488 --- docs/deployment/docker.adoc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/deployment/docker.adoc b/docs/deployment/docker.adoc index 03b2a2a0..8c8a6895 100644 --- a/docs/deployment/docker.adoc +++ b/docs/deployment/docker.adoc @@ -1,4 +1,5 @@ = Docker image +include::../.variables.adoc[] :toc: right This section describes the official Enonic XP docker image as well how to configure and run it. @@ -11,9 +12,9 @@ If you just want to try out the image, with no data persistence, you can run thi NOTE: Running this command requires you to have docker installed. -[source,bash] +[source,bash,subs="attributes"] ---- -docker run -it --rm -p 8080:8080 enonic/xp:7.12.2-ubuntu +docker run -it --rm -p 8080:8080 enonic/xp:{version}-ubuntu ---- == Image description @@ -31,7 +32,7 @@ The goals of this docker image is to: === Base image -Every time the Enonic XP image is built it will be based off the latest `enonic/graalvm` docker image. This ensures the latest updates to the JVM and OS. +Every time the Enonic XP image is built it will be based off the latest https://hub.docker.com/r/enonic/graalvm[enonic/graalvm] docker image. This ensures the latest updates to the JVM and OS. === Enforced best practices @@ -140,7 +141,7 @@ In this subection we list some `XP_OPTS` parameters that are useful when running ===== Memory -Like described in the <> section, you should set the java heap memory limits. If your machine has 4GB of memory and you want to allocate 75% of that to heap memory, do that by adding to `XP_OPTS`. +Like described in the <> section, you should set the java heap memory limits. If your machine has 4GB of memory, and you want to allocate 75% of that to heap memory, do that by adding to `XP_OPTS`. [source,bash] ----