Skip to content
Snippets Groups Projects
Commit 62a58be4 authored by Robert Lange's avatar Robert Lange
Browse files

refs #24566 [finc] docker: introduce mariadb image with version 10.11

* add folders in devops for 10.11.5 and 10.3.17
* version is set by var DB_VERSION in .env file
parent c527ae62
No related merge requests found
...@@ -7,4 +7,7 @@ NODE_SASS=^7.0.1 ...@@ -7,4 +7,7 @@ NODE_SASS=^7.0.1
COMPOSER_VERSION=composer2 COMPOSER_VERSION=composer2
# Version for php in PHP container: php7_2 | php8_0 # Version for php in PHP container: php7_2 | php8_0
PHP_VERSION=php7_2 PHP_VERSION=php7_2
\ No newline at end of file
# Version for database in db container: mariadb_10_3 | mariadb_10_11
DB_VERSION=mariadb_10_3
\ No newline at end of file
# Copyright (C) 2023 Leipzig University Library
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# @author Sebastian Kehr <kehr@ub.uni-leipzig.de>
# @license https://opensource.org/licenses/GPL-3.0 GNU GPLv3
FROM mariadb:10.11.5
\ No newline at end of file
# Copyright (C) 2023 Leipzig University Library
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# @author Sebastian Kehr <kehr@ub.uni-leipzig.de>
# @license https://opensource.org/licenses/GPL-3.0 GNU GPLv3
FROM mariadb:10.3.17
\ No newline at end of file
#!/usr/bin/env sh
# Copyright (C) 2020 Leipzig University Library
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# @author Sebastian Kehr <kehr@ub.uni-leipzig.de>
# @license https://opensource.org/licenses/GPL-3.0 GNU GPLv3
until ! (ping -c1 env >/dev/null 2>&1) && [ -f ./data/docker/env/db ]; do :; done
while ! grep -q MYSQL_ROOT_PASSWORD ./data/docker/env/db
do
echo "wait for MYSQL_ROOT_PASSWORD"
sleep 1
done
set -a; . ./data/docker/env/db; set +a
echo "set up db"
exec docker-entrypoint.sh "$@"
\ No newline at end of file
...@@ -43,7 +43,7 @@ services: ...@@ -43,7 +43,7 @@ services:
tty: true tty: true
db: db:
image: mariadb:10.3.17 build: devops/docker/db/${DB_VERSION:-mariadb_10_3}
ports: ports:
- 127.0.0.1:${DB_PORT:-11101}:3306 - 127.0.0.1:${DB_PORT:-11101}:3306
working_dir: /usr/local/vufind working_dir: /usr/local/vufind
...@@ -53,7 +53,7 @@ services: ...@@ -53,7 +53,7 @@ services:
depends_on: depends_on:
- env - env
- autoconfig - autoconfig
entrypoint: ["devops/docker/db/entrypoint.sh"] entrypoint: devops/docker/db/${DB_VERSION:-mariadb_10_3}/entrypoint.sh
command: [ command: [
"mysqld", "mysqld",
"--character-set-server=utf8mb4", "--character-set-server=utf8mb4",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment