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

[Misc] For some reason latest-* tags don't exist (anymore?)

parent ed64dc0a
No related branches found
No related tags found
No related merge requests found
......@@ -150,13 +150,13 @@ Ensure this directory exists, and then run XWiki in a container by issuing one o
For MySQL:
```console
docker run --net=xwiki-nw --name xwiki -p 8080:8080 -v /my/path/xwiki:/usr/local/xwiki -e DB_USER=xwiki -e DB_PASSWORD=xwiki -e DB_DATABASE=xwiki -e DB_HOST=mysql-xwiki xwiki:latest-mysql-tomcat
docker run --net=xwiki-nw --name xwiki -p 8080:8080 -v /my/path/xwiki:/usr/local/xwiki -e DB_USER=xwiki -e DB_PASSWORD=xwiki -e DB_DATABASE=xwiki -e DB_HOST=mysql-xwiki xwiki:stable-mysql-tomcat
```
For PostgreSQL:
```console
docker run --net=xwiki-nw --name xwiki -p 8080:8080 -v /my/path/xwiki:/usr/local/xwiki -e DB_USER=xwiki -e DB_PASSWORD=xwiki -e DB_DATABASE=xwiki -e DB_HOST=postgres-xwiki xwiki:latest-postgres-tomcat
docker run --net=xwiki-nw --name xwiki -p 8080:8080 -v /my/path/xwiki:/usr/local/xwiki -e DB_USER=xwiki -e DB_PASSWORD=xwiki -e DB_DATABASE=xwiki -e DB_HOST=postgres-xwiki xwiki:stable-postgres-tomcat
```
Be careful to use the same DB username, password and database names that you've used on the first command to start the DB container. Also, please don't forget to add a `-e DB_HOST=` environment variable with the name of the previously created DB container so that XWiki knows where its database is.
......@@ -190,7 +190,7 @@ networks:
driver: bridge
services:
web:
image: "xwiki:latest-mysql-tomcat"
image: "xwiki:stable-mysql-tomcat"
container_name: xwiki-mysql-tomcat-web
depends_on:
- db
......@@ -245,7 +245,7 @@ networks:
driver: bridge
services:
web:
image: "xwiki:latest-mariadb-tomcat"
image: "xwiki:stable-mariadb-tomcat"
container_name: xwiki-mariadb-tomcat-web
depends_on:
- db
......@@ -298,7 +298,7 @@ networks:
driver: bridge
services:
web:
image: "xwiki:latest-postgres-tomcat"
image: "xwiki:stable-postgres-tomcat"
container_name: xwiki-postgres-tomcat-web
depends_on:
- db
......@@ -358,7 +358,7 @@ To deploy this example, save the following YAML as `xwiki-stack.yaml`, then run:
version: '3.3'
services:
web:
image: "xwiki:latest-mysql-tomcat"
image: "xwiki:stable-mysql-tomcat"
ports:
- "8080:8080"
environment:
......@@ -421,7 +421,7 @@ To deploy this example, save the following YAML as `xwiki-stack.yaml` then run:
version: '3.3'
services:
web:
image: "xwiki:latest-postgres-tomcat"
image: "xwiki:stable-postgres-tomcat"
ports:
- "8080:8080"
environment:
......@@ -518,7 +518,7 @@ docker run \
-e DB_DATABASE=xwiki \
-e DB_HOST=mysql-xwiki \
-e INDEX_HOST=solr-xwiki \
-d xwiki:latest-mysql-tomcat
-d xwiki:stable-mysql-tomcat
```
#### Docker Compose example
......@@ -532,7 +532,7 @@ networks:
driver: bridge
services:
web:
image: "xwiki:latest-mysql-tomcat"
image: "xwiki:stable-mysql-tomcat"
container_name: xwiki-web
depends_on:
- db
......@@ -589,14 +589,14 @@ If you want to modify the existing configuration rather than provide a brand new
Here are some example steps you can follow:
- Create a docker container from the XWiki image with `docker create`.
- Example: `docker create --name xwiki xwiki:latest-mysql-tomcat`.
- Example: `docker create --name xwiki xwiki:stable-mysql-tomcat`.
- Copy the Tomcat configuration from the container to the host to start with some existing configuration files, using `docker cp`.
- Example: `sudo docker cp xwiki:/usr/local/tomcat/conf /tmp/tomcat`.
- Modify the Tomcat configuration locally to bring the changes you need.
- Delete the created XWiki container since it was only used to copy the configuration files and we'll need to create a new one with different parameters.
- Example: `docker rm xwiki`.
- Run the container with the Tomcat mount and the other parameters.
- Example: `docker run --net=xwiki-nw --name xwiki -p 8080:8080 -v /tmp/xwiki:/usr/local/xwiki -v /tmp/tomcat:/usr/local/tomcat/conf -e DB_USER=xwiki -e DB_PASSWORD=xwiki -e DB_DATABASE=xwiki -e DB_HOST=mysql-xwiki xwiki:latest-mysql-tomcat`
- Example: `docker run --net=xwiki-nw --name xwiki -p 8080:8080 -v /tmp/xwiki:/usr/local/xwiki -v /tmp/tomcat:/usr/local/tomcat/conf -e DB_USER=xwiki -e DB_PASSWORD=xwiki -e DB_DATABASE=xwiki -e DB_HOST=mysql-xwiki xwiki:stable-mysql-tomcat`
## Building
......
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.