Giter VIP home page Giter VIP logo

ameezo-mariadb's Introduction

amazee.io centos7 mariadb

amazee.io CentOS 7 Dockerfile with mariadb installed, based on amazeeio/centos:7 Docker Image.

This Dockerfile is intended to be used as an base for any mariadb needs within amazee.io. It follows the awesome work already happening in the official mariadb docker image just with some adaptions for amazeeio and of course running on centos.

  • MariaDB is installed via https://downloads.mariadb.org/mariadb/repositories
  • It is shipped with a complete empty /var/lib/mysql (during installation mysql is actually started and therefore some things filled in /var/lib/mysql, but we remove it right afterwards for consistency)
  • the docker-entrypoint file is also based on the official mariadb one and can setup a new Server, Database, User when container is started the first time and /var/lib/mysql is empty

amazee.io & OpenShift adaptions

This image is prepared to be used on amazee.io which leverages OpenShift. There are therefore some things already done:

  • Folder permissions are automatically adapted with fix-permissions so this image will work with a random user and therefore also on OpenShift.
  • all files within /etc/my.cnf.d/ are parsed through envplate with an container-endpoint.

Included mariadb config

The included mariadb config contains sane values that will make the usage of maradbeasier. See server.cnf for all of it.

If you don't like any of these configs, you have two possibilities:

  1. If they are changeable via environment variables, use them (prefeered version, see list of environment variables below).
  2. Create your own server.cnf config and overwrite the provided one with your own configuration.

Environment Variables

Environment variables are meant to do common behavior changes of nginx. If you need more then these it is best to replace the nginx.conf file all together.

Environment Variable Default Description
MARIADB_INNODB_BUFFER_POOL_SIZE 256M InnoDB buffer pool size in bytes. The primary value to adjust on a database server with entirely/primarily XtraDB/InnoDB tables, can be set up to 80% of the total memory in these environments. More at mariadb.com

ameezo-mariadb's People

Contributors

schnitzel avatar

Watchers

udupicloud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.