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

[Misc] Go back to the previous setup which was better and I've found a way to...

[Misc] Go back to the previous setup which was better and I've found a way to make DockerHub happy with it.
parent 6b5a8f89
No related branches found
No related tags found
No related merge requests found
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
* A Docker container running the latest Tomcat 8 + Java 8 + XWiki (the version depends on the branch/tag you use)
Provides several full Docker environments for running XWiki.
The following configurations are currently supported:
* Two Docker containers with one container for running latest MySQL 5.x database (configured to use UTF8 and be
case-insensitive) and another container for 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.
......@@ -10,19 +13,20 @@ You should first install [Docker](https://www.docker.com/) on your machine.
Then there are several options:
1. Get the [sources of this project](https://github.com/xwiki-contrib/xwiki-mysql-tomcat) and build them.
1. Get the [sources of this project](https://github.com/xwiki-contrib/docker-xwiki) and build them.
2. Just pull the xwiki image from DockerHub.
## Building ##
This is the simplest solution and the one recommended. Here are the steps:
* Install Git and run `git clone https://github.com/xwiki-contrib/xwiki-mysql-tomcat.git` or download the sources from
* Install Git and run `git clone https://github.com/xwiki-contrib/docker-xwiki.git` or download the sources from
the GitHub UI. Then choose the branch or tag that you wish to use:
* The `master`branch will get you the latest released version of XWiki
* The `8.x` branch will get you the latest released version of XWiki for the 8.x cycle
* The `8.4.4` tag will get you exactly XWiki 8.4.4.
* etc.
* Go the directory corresponding to the configuration you wish to build, for example: `cd xwiki-mysql-tomcat`.
* Run `docker-compose up`
* Start a browser and point it to `http://localhost:8080`
......@@ -38,7 +42,7 @@ you can issue `docker-compose up --build`. You can also build the image with
This is a bit more complex since you need to have 2 docker containers running: one for XWiki and one for the database.
Here's a minimal Docker Compose file that you could use as an example (full example
Here's a minimal Docker Compose file using MySQL that you could use as an example (full example
[here](https://github.com/xwiki-contrib/xwiki-mysql-tomcat/blob/master/docker-compose-using.yml):
```
......@@ -71,7 +75,7 @@ volumes:
xwiki-data: {}
```
# Details
# Details for xwiki-mysql-tomcat
Volumes:
* Two volumes are created:
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
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.