Skip to content
Snippets Groups Projects
README.md 1.58 KiB
Newer Older
Vincent Massol's avatar
Vincent Massol committed
Provides a full Docker environment for XWiki made up of the following:
* A Docker container running the latest MySQL 5.x database and configured to use UTF8 and be case-insensitive
Vincent Massol's avatar
Vincent Massol committed
* A Docker container running the latest Tomcat 8 + Java 8 + XWiki (the version depends on the branch/tag you use)

All source files are under the LGPL 2.1 license.

Usage
-----
Fabio Mancinelli's avatar
Fabio Mancinelli committed

* Install Docker on your machine
* Install Git and run `git clone https://github.com/xwiki-contrib/docker-xwiki.git` or download the content of https://github.com/xwiki-contrib/docker-xwiki
* Go to the `xwiki-mysql-tomcat` directory: `cd xwiki-mysql-tomcat`
Fabio Mancinelli's avatar
Fabio Mancinelli committed

Fabio Mancinelli's avatar
Fabio Mancinelli committed

Volumes:
* Two volumes are created:
  * A volume named `<prefix>_mysql-data` that contains the database data.
  * A volume named `<prefix>_xwiki-data` that contains XWiki's permanent directory.
* To find out where those volumes are located on your local host machine you can inspect them with `docker volume inspect <volume name>`. To find the volume name, you can list all volumes with `docker volume ls`. 
* Note that on Mac OSX, Docker runs inside the xhyve VM and thus the paths you get when inspecting the volumes are relative to this. Thus, you need to get into that VM if you need to access the volume data. 

MySQL:
* To issue some mysql commands:
 * Find the container id with `docker ps` 
 * Execute bash in the mysql container: `docker exec -it <containerid> bash -l`
 * Once inside the mysql container execute the `mysql` command: `mysql --user=xwiki --password=xwiki`
Fabio Mancinelli's avatar
Fabio Mancinelli committed

* Setup xinit
* Configure libreoffice
* Solr as external service

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.