Sign inSign up

rainerwieland/alpine-mariadb

By rainerwieland

•Updated almost 5 years ago

alpine-mariadb is based on yobasystems/alpine-mariadb:10.5 and added sh-bgr-script to add "trigger"

Image
0

126

rainerwieland/alpine-mariadb repository overview

See: https://hub.docker.com/r/yobasystems/alpine-mariadb⁠ All credits go there.

I have only extended the image to allow triggers to be installed during the initialization procedure.

With above the databases, tables are installed directly with mysqld ... < tfile are realized. But this is not possible for a trigger statement because of the end-of-line character ; and delimiter // is not SQL syntax, so this can only be interpreted accordingly by clients. In my solution the daemon is started and then the trigger command is issued via the integrated mysql-client. The trick is that this process is already executed before the daemon and as a background process with a delay of 5 seconds.

Tag summary

Content type

Image

Digest

Size

64.1 MB

Last updated

almost 5 years ago

docker pull rainerwieland/alpine-mariadb:1.0.3