Skip to content

MySQL Docker Container for AARCH64, ARMv7l, X86 and X64

Notifications You must be signed in to change notification settings

tsitle/dockercontainer-db-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL Docker Container for AARCH64, ARMv7l, X86 and X64

Docker Container usage

To start an MySQL 5.7 container execute

$ ./dc-run.sh 5.7

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

To stop the container use

$ ./dc-stop.sh 5.7

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

Required Docker Image

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

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

MySQL Docker Container for AARCH64, ARMv7l, X86 and X64

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages