diff --git a/README.md b/README.md index bf18b0cdc725c8782c7fabb780814ea1fbbdcf85..3d0bd3535eaac6047948dcddb8b34986d37b9b55 100644 --- a/README.md +++ b/README.md @@ -6,44 +6,20 @@ Version: 10.5.4 MariaDB is a community-developed fork of the MySQL relational database management system. -The following MariaDB documentation provides an introduction, primer, list of SQL statements, and useful MariaDB queries: +The Helm chart for MariaDB can be found [here](https://github.com/bitnami/charts/tree/master/bitnami/mariadb) -[https://mariadb.org/documentation/](https://mariadb.org/documentation/) +The recommended secure configuration in values-ironbank.yaml as well as additional Helm chart data can be found [here](https://repo1.dsop.io/dsop/charts/-/tree/master/bitnami/mariadb/mariadb105/). -## Downloading and Building MariaDB from Iron Bank - -1. Go to the [MariaDB webpage](https://ironbank.dsop.io/vendor?product=mariadb&vendor=opensource) in Iron Bank and download the latest tarball. -2. Navigate to the location of the download and run `docker load -i *tarball.tar.gz* -t mariadb:*tag*` or `podman load -i *tarball.tar.gz* -t mariadb:*tag*`, substituting in the appropriate download name. This will build the image that will be used when the container runs. Provide a unique tag so that it is easy to reference the image later. +The [MariaDB documentation](https://mariadb.org/documentation/) provides an introduction, primer, list of SQL statements, and useful MariaDB queries: ## Usage -Run MariaDB while mounting your own data directory setting your passwords (**Set these passwords to your own**): -``` -### Set these passwords to your own -docker run --name mariadb -v /your/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root-secret-pw -e MYSQL_USER=mysql -e MYSQL_PASSWORD=mysql-secret-pw -d mariadb:*tag* -### -``` -Exec into the shell of the container: -``` -docker exec -it mariadb bash -``` -Log in to start using: -``` -mysql -u mysql -p -``` - -## Notes - -The following links provide additional tips for running MariaDB on Docker: - -- [DockerHub: MariaDB Install Instructions](https://hub.docker.com/_/mariadb) -- [GitHub: MariaDB 10.5](https://github.com/docker-library/mariadb/tree/master/10.5) - -The following links provide additional tips for running MariaDB on Kubernetes: - -- [An Introduction to Kubernetes Secrets and ConfigMaps](https://opensource.com/article/19/6/introduction-kubernetes-secrets-and-configmaps) -- [Run a Single-Instance Stateful Application](https://kubernetes.io/docs/tasks/run-application/run-single-instance-stateful-application/) -- [Example: Deploying WordPress and MySQL with Persistent Volumes](https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/) -- [Deploy a Production-Ready MariaDB Cluster on Kubernetes with Bitnami and Helm](https://engineering.bitnami.com/articles/deploy-a-production-ready-mariadb-cluster-on-kubernetes-with-bitnami-and-helm.html) -- [How to Set Up MySQL Kubernetes Deployments with Cloud Volumes](https://cloud.netapp.com/blog/how-to-set-up-mysql-kubernetes-deployments) -- [How to Run HA MariaDB on Google Kubernetes Engine](https://portworx.com/run-ha-mariadb-google-kubernetes-engine/) \ No newline at end of file +The values-ironbank.yaml file located [here](https://repo1.dsop.io/dsop/charts/-/tree/master/stable) provides a recommended secure configuration of MariaDB and can replace the values.yaml in the standard Helm chart (also provided in this repository). Please see the following links for more information regarding configration options for production-ready deployments. + +## Volumes + +The standard location for the MariaDB volume is `/var/lib/mysql`. Further confiugration details can be specified and additional documentation on Kubernetes volumes can be found [here](https://kubernetes.io/docs/concepts/storage/volumes/) with details about each section in the volume definition that can be specified. + +## Configuration + +Configuration changed can be made in the `/etc/mysql/my.cnf` \ No newline at end of file