aboutsummaryrefslogtreecommitdiff
path: root/test/docker/README.md
diff options
context:
space:
mode:
authorbadlop <badlop@process-one.net>2020-11-17 16:48:13 +0100
committerGitHub <noreply@github.com>2020-11-17 16:48:13 +0100
commit1c6221d8a0ab4cd4af16fa54a21847d875363e7c (patch)
treeefd5fe6e6fc48f9ea25e0e5760e44fbd4b860a43 /test/docker/README.md
parentAllow room_unused_list/destroy work on hibernated rooms (diff)
parentFix docker DB initialization (diff)
Merge pull request #3402 from nosnilmot/docker-fixes
Fix docker DB initialization
Diffstat (limited to 'test/docker/README.md')
-rw-r--r--test/docker/README.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/docker/README.md b/test/docker/README.md
index 24c675cab..b19321215 100644
--- a/test/docker/README.md
+++ b/test/docker/README.md
@@ -20,9 +20,7 @@ You can stop all the databases with CTRL-C.
The following commands will create the necessary login, user and database, will grant rights on the database in MSSQL and create the ejabberd schema:
```
-docker cp test/docker/db/mssql/initdb/initdb_mssql.sql ejabberd-mssql:/
docker exec ejabberd-mssql /opt/mssql-tools/bin/sqlcmd -U SA -P ejabberd_Test1 -S localhost -i /initdb_mssql.sql
-docker cp sql/mssql.sql ejabberd-mssql:/
docker exec ejabberd-mssql /opt/mssql-tools/bin/sqlcmd -U SA -P ejabberd_Test1 -S localhost -i /mssql.sql
```
@@ -49,10 +47,10 @@ You can fully clean up the environment with:
(cd test/docker; docker-compose down)
```
-If you want to clean the data, you can remove the data directories after the `docker-compose down` command:
+If you want to clean the data, you can remove the data volumes after the `docker-compose down` command:
```
-rm -rf test/docker/db/mysql/data
-rm -rf test/docker/db/postgres/data
-docker volume rm docker_mssqldata
+docker volume rm ejabberd-mysqldata
+docker volume rm ejabberd-mssqldata
+docker volume rm ejabberd-pgsqldata
```