Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bill88t/kingpancakedb
- Owner: bill88t
- License: mit
- Created: 2024-05-14T13:22:33.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-30T22:50:50.000Z (7 months ago)
- Last Synced: 2024-11-08T12:44:58.210Z (about 2 months ago)
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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
----