Skip to content

MariaDB Docker Container for AARCH64, ARMv7l, X86 and X64

Notifications You must be signed in to change notification settings

tsitle/dockercontainer-db-mariadb

Repository files navigation

MariaDB Docker Container for AARCH64, ARMv7l, X86 and X64

Docker Container usage

To start an MariaDB 10.1 container execute

$ ./dc-run.sh 10.1

This will also print the TCP port number that MariaDB can be accessed by.

To stop the container use

$ ./dc-stop.sh 10.1

You may replace the version number with any number that corresponds
to an available Docker Image (db-mariadb-<ARCH>:<VERSION>).

Required Docker Image

The Docker Image db-mariadb-<ARCH> will automaticly be downloaded from the Docker Hub.
The source for the image can be found here https://github.com/tsitle/dockerimage-db-mariadb.

Docker Container configuration

  • CF_SYSUSR_MYSQL_USER_ID [int]: User-ID for user that ownes the database files
  • CF_SYSUSR_MYSQL_GROUP_ID [int]: Group-ID for group that ownes the database files
  • CF_MYSQL_MAX_ALLOWED_PACKET [string]: Size string (e.g. "128M")
  • CF_MYSQL_INNODB_BUFFER_POOL_SIZE [string]: Size string (e.g. "8G")
  • CF_MYSQL_INNODB_LOG_FILE_SIZE [string]: Size string (e.g. "64M")
  • CF_MYSQL_INNODB_PAGE_SIZE [string]: Size string (e.g. "64k")
  • CF_MYSQL_TABLE_OPEN_CACHE [int]: Maximum number of open tables cached in one table cache instance (e.g. "2000")
  • CF_MYSQL_TABLE_DEF_CACHE [int]: The number of cached table definitions (e.g. "400")
  • CF_MYSQL_OPEN_FILES_LIMIT [int]: The number of file descriptors available to MariaDB (e.g. "100")
  • CF_MYSQL_SQLMODE [string]: List of options for sql_mode (e.g. "STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO")
  • CF_LANG [string]: Language to use (en_EN.UTF-8 or de_DE.UTF-8)
  • CF_TIMEZONE [string]: Timezone (e.g. 'Europe/Berlin')

Only when the internal data directory doesn't already exist:

  • CF_ENABLE_DB_INIT_DEBUG [bool]: Enable debugging output when DB is initialized?
    Warning: This will print DB user passwords to the log output
  • CF_DB_ROOT_PASSWORD [string]: Password for DB root user (>= 4 chars)
  • to create a new DB scheme when a container is started:
    • CF_DB_USER_NAME [string]: Create a DB user with this name
    • CF_DB_USER_PASS [string]: Password for CF_DB_USER_NAME (>= 4 chars)
    • CF_DB_SCHEME_NAME [string]: Create a DB scheme that CF_DB_USER_NAME can access

About

MariaDB Docker Container for AARCH64, ARMv7l, X86 and X64

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages