Skip to content
Snippets Groups Projects
Verified Commit ffed88c0 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Patch

parent eb5e1695
Branches
Tags
1 merge request!33Fix accent sensitivity
Pipeline #60562 passed
version: '3.6'
services:
sqldb:
image: mariadb:10.5
image: mariadb:11.4
volumes:
- type: volume
source: "caosdb-sqldata"
......
......@@ -62,10 +62,10 @@ test-dump-update:
# Run tests with a database which is started in a MariaDB Docker container
.PHONY: test-docker
test-docker:
@docker kill caosdb-mysqlserver-test || true
@docker container rm -v caosdb-mysqlserver-test || true
@docker run --name caosdb-mysqlserver-test -p "3307:3306" \
-e MYSQL_ROOT_PASSWORD="pass-for-test" -d mariadb:10.11
@docker kill linkahead-mysqlserver-test || true
@docker container rm -v linkahead-mysqlserver-test || true
@docker run --name linkahead-mysqlserver-test -p "3306:3306" \
-e MYSQL_ROOT_PASSWORD="pass-for-test" -d mariadb:11.4
@sleep 10
MAINPATH=$(realpath tests/docker_env) utils/make_db test --fresh
make test-docker-stop
......@@ -73,8 +73,8 @@ test-docker:
# if automatic stopping failed
.PHONY: test-docker-stop
test-docker-stop:
docker kill caosdb-mysqlserver-test
docker container rm -v caosdb-mysqlserver-test
docker kill linkahead-mysqlserver-test
docker container rm -v linkahead-mysqlserver-test
# Compile the standalone documentation
.PHONY: doc
......
Maintenance
===========
Creating a Backup
-----------------
You can use the Python script ``utils/backup.py`` to create a backup (SQL dump)
of the SQL-Backend::
./utils/backup.py -d folder/where/the/backup/is/created
You can do this while CaosDB is online.
You can do this while LinkAhead is online.
Restoring a Backup
------------------
CaosDB should be offline for restoring.
LinkAhead should be offline for restoring.
You can use the Bash script ``utils/make_db`` to restore a backup (SQL dump)
of the SQL-Backend::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment