Skip to content
Snippets Groups Projects
Commit 12773385 authored by Vincent Massol's avatar Vincent Massol
Browse files

XDOCKER-20: Allow configuring XWiki outside of the container

* Update documentation accordingly
parent fbc0fe3c
No related branches found
No related tags found
No related merge requests found
...@@ -218,9 +218,7 @@ Thus all you need to do is to execute the installation instructions above as if ...@@ -218,9 +218,7 @@ Thus all you need to do is to execute the installation instructions above as if
Then you need to stop your running XWiki container. You should keep your DB container running. Then all you have to do is start a new container as described above, using the new XWiki docker image. Then you need to stop your running XWiki container. You should keep your DB container running. Then all you have to do is start a new container as described above, using the new XWiki docker image.
Caveats: Note that your current XWiki configuration files (`xwiki.cfg`, `xwiki.properties` and `hibernate.cfg.xml`) will be preserved.
- Right now we have an [outstanding issue](https://jira.xwiki.org/browse/XDOCKER-20) and thus if you've had to modify `xwiki.properties` or `xwiki.cfg` inside the XWiki container, you'll need to port your changes inside the new container (see the section below).
# Details for the xwiki image # Details for the xwiki image
...@@ -233,14 +231,14 @@ The first time you create a container out of the xwiki image, a shell script (`/ ...@@ -233,14 +231,14 @@ The first time you create a container out of the xwiki image, a shell script (`/
- `DB_DATABASE`: The name of the XWiki database to use/create. - `DB_DATABASE`: The name of the XWiki database to use/create.
- `DB_HOST`: The name of the host (or docker container) containing the database. Default is "db". - `DB_HOST`: The name of the host (or docker container) containing the database. Default is "db".
If you need to configure XWiki (e.g. modify `xwiki.properties` or `xwiki.cfg`) or perform some additional configuration, you can execute another container and attach to the running XWiki container by issuing: The main XWiki configuration files (`xwiki.cfg`, `xwiki.properties` and `hibernate.cfg.xml`) are available in the mapped local directory for the permanent directory on your host.
If you need to perform some advanced configuration, you can execute another container and attach to the running XWiki container by issuing (but note that these won't be saved if you remove the container):
```console ```console
docker exec -it <xwiki container id> bash -l docker exec -it <xwiki container id> bash -l
``` ```
Note that we plan to [lift this limitation in the future](https://jira.xwiki.org/browse/XDOCKER-20).
## Passing JVM options ## Passing JVM options
It's possible to pass JVM options to Tomcat by defining the `JAVA_OPTS` environment property. It's possible to pass JVM options to Tomcat by defining the `JAVA_OPTS` environment property.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.