ソースを参照

Run update.sh

Docker Library Bot 4 年 前
コミット
297e02e73e
1 ファイル変更54 行追加3 行削除
  1. 54 3
      convertigo/README.md

+ 54 - 3
convertigo/README.md

@@ -111,7 +111,26 @@ Projects are deployed in the Convertigo workspace, a simple file system director
 $ docker run --name C8O -v $(pwd):/workspace -d -p 28080:28080 convertigo
 ```
 
-You can share the same workspace by all Convertigo containers. This this case, when you deploy a project on a Convertigo container, it will be seen by others. This is the best way to build multi-instance load balanced Convertigo server farms.
+You can share the same workspace by all Convertigo containers. In this case, when you deploy a project on a Convertigo container, it will be seen by others. This is the best way to build multi-instance load balanced Convertigo server farms.
+
+**Be sure to have a really fast file sharing between instances !!!**
+
+To avoid log and cache mixing, you have to add 2 variables for instance specific paths:
+
+```console
+-Dconvertigo.engine.cache_manager.filecache.directory=/workspace/cache/[instance name]
+-Dconvertigo.engine.log4j.appender.CemsAppender.File=/workspace/logs/[instance name]/engine.log
+```
+
+## Make image with pre-deployed projects
+
+If you want to make a vertical image ready to start with your application inside, you have to have your built projects **.car** files next to your `Dockerfile`:
+
+```console
+FROM convertigo
+COPY myProject.car /usr/local/tomcat/webapps/convertigo/WEB-INF/default_user_workspace/projects/
+COPY myDependency.car /usr/local/tomcat/webapps/convertigo/WEB-INF/default_user_workspace/projects/
+```
 
 ## Migrate from an earlier version of Convertigo
 
@@ -125,7 +144,7 @@ The default administration account of a Convertigo serveur is **admin** / **admi
 
 These accounts can be configured through the *administration console* and saved in the **workspace**.
 
-### `CONVERTIGO_ADMIN_USER` and `CONVERTIGO_ADMIN_PASSWORD` variables
+### `CONVERTIGO_ADMIN_USER` and `CONVERTIGO_ADMIN_PASSWORD` Environment variables
 
 You can change the default administration account :
 
@@ -133,7 +152,7 @@ You can change the default administration account :
 $ docker run -d --name C8O -e CONVERTIGO_ADMIN_USER=administrator -e CONVERTIGO_ADMIN_PASSWORD=s3cret -p 28080:28080 convertigo
 ```
 
-### `CONVERTIGO_TESTPLATFORM_USER` and `CONVERTIGO_TESTPLATFORM_PASSWORD` variables
+### `CONVERTIGO_TESTPLATFORM_USER` and `CONVERTIGO_TESTPLATFORM_PASSWORD` Environment variables
 
 You can lock the **testplatform** by setting the account :
 
@@ -151,6 +170,8 @@ Add any *Java JVM* options such as -D[something] :
 $ docker run -d --name C8O -e JAVA_OPTS="-DjvmRoute=server1" -p 28080:28080 convertigo
 ```
 
+[Here the list of convertigo specific properties](https://www.convertigo.com/documentation/latest/operating-guide/appendixes/#list-of-convertigo-java-system-properties) (don't forget the `-Dconvertigo.engine.` prefix).
+
 ## `JXMX` Environment variable
 
 Convertigo tries to allocate this amount of memory in the container and will automatically reduce it until the value is compatible for the Docker memory constraints. Once the best value found, it is used as `-Xmx=${JXMX}m` parameter for the JVM.
@@ -183,6 +204,36 @@ The default `COOKIE_SECURE` value is `false` and can be defined :
 $ docker run -d --name C8O -e COOKIE_SECURE="true" -p 28080:28080 convertigo
 ```
 
+## `COOKIE_SAMESITE` Environment variable
+
+Allow to configure the *SameSite* parameter for generated cookies. Can be empty, `none`, `lax` or `strict`.
+
+The default `COOKIE_SAMESITE` value is *empty* and can be defined this way:
+
+```console
+$ docker run -d --name C8O -e COOKIE_SAMESITE=lax -p 28080:28080 convertigo
+```
+
+## `SESSION_TIMEOUT` Environment variable
+
+Allow to configure the default Tomcat *session-timeout* in minutes. This value is used for non-project calls (Administration console, Fullsync...). This value is overridden by each projects' calls (Sequence, Transaction ...).
+
+The default `SESSION_TIMEOUT` value is *30* and can be defined this way:
+
+```console
+$ docker run -d --name C8O -e SESSION_TIMEOUT=5 -p 28080:28080 convertigo
+```
+
+## `DISABLE_SUDO` Environment variable
+
+The image include *sudo* command line, configured to allow the *convertigo* user to use it without password and to perform some *root* action inside the container. This variable allow to disable this permission.
+
+The default `DISABLE_SUDO` value is *empty* and can be defined this way:
+
+```console
+$ docker run -d --name C8O -e DISABLE_SUDO=true -p 28080:28080 convertigo
+```
+
 ## Pre configurated Docker compose stack
 
 You can use this [stack](https://github.com/convertigo/docker/blob/master/compose/mbaas/docker-compose.yml) to run a complete Convertigo MBaaS server with FullSync repository and MySQL analytics in a few command lines.