Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bill88t/kingpancakedb

A simple mariadb docker lab.
https://github.com/bill88t/kingpancakedb

Last synced: 3 days ago
JSON representation

A simple mariadb docker lab.

Awesome Lists containing this project

README

        

= Docker MariaDB

This docker sets up and configures a database using MySQL

= Database

We chose to do MariaDB because its an open source software, is free to use and has an active community that contributes to its development.
It is fully compatible with MySQL and it provides high performance with improved storage capabilities and fast searches while also offering enhanced security features and fixes.

== Docker Steps
* Executes predefined preparation scenarios.
* Checks and creates the necessary folders if they do not exist.
* Configures access permissions for MySQL folders.
* Creates the initial MySQL data if none exists.
* Sets the password of the MySQL root user.
* Optionally, creates a new database and user.
* Executes predefined scripts before booting.
* Starts the MySQL server.

=== How to install

[,ruby]
----
find file 'install.sh'
----

**Open a terminal**
Following commands

**Contains **
[,shell]
----
docker volume create mdb1
docker build -t kingpancakedb:latest
docker run -d \
--name myMariaDB \
-v mdb1:/var/lib/mysql \
-p 3306:3306 \
kingpancakedb:latest
----

==== Checking the Logs
[,ruby]
----
locate file 'monitor.sh'
----

----
do 'docker logs -f myMariaDB'
----

==== Removing the docker
[,ruby]
----
locate file 'remove.sh'
----

**Contains **
[,shell]
----
docker container stop myMariaDB
docker container rm myMariaDB
docker volume rm mdb1
----