mariadb-container icon indicating copy to clipboard operation
mariadb-container copied to clipboard

Load ini SQL files from /docker-entrypoint-initdb.d if any (for 10.1 in a first time)

Open mguillem opened this issue 7 years ago • 11 comments

This change adds the possibility to provide ini SQL files in /docker-entrypoint-initdb.d (only for 10.1 in a first time). This is really useful to provide images with an initial state for a test or QA environment.

The patch is deeply inspired from the official mysql docker image. Supporting exactly the same startup features would be really great. See "Initializing a fresh instance" in https://hub.docker.com/_/mysql/ or here for the sources https://github.com/docker-library/mysql/blame/dc60c4b80f3eb5b7ef8b9ae09f16f6fab7a2fbf5/8.0/docker-entrypoint.sh#L177

This is similar to my pull request for mysql-container: https://github.com/sclorg/mysql-container/pull/185

mguillem avatar Aug 11 '17 06:08 mguillem

Can one of the admins verify this patch?

rhscl-bot avatar Aug 11 '17 06:08 rhscl-bot

Can one of the admins verify this patch?

centos-ci avatar Aug 11 '17 06:08 centos-ci

Can one of the admins verify this patch?

rhscl-bot avatar Aug 11 '17 06:08 rhscl-bot

Hi, thanks for this PR.

There is a long waiting PR to add support for extending this image using s2i tool .Please take a look at #32 . It uses only different path for extending stuff - /opt/app-root/src/. It now supports only *.sh scripts, but IMPOV can be easily extended to do the same.

It would be great to use s2i compatible location to make this image "compatible" with other sclorg/ images. @mguillem So please take a look in mentioned PR if generally it could be fine for you and there is no problem with different location.

omron93 avatar Aug 11 '17 08:08 omron93

Can one of the admins verify this patch?

rhscl-bot avatar Nov 28 '17 15:11 rhscl-bot

Can one of the admins verify this patch?

centos-ci avatar Nov 28 '17 15:11 centos-ci

Can one of the admins verify this patch?

rhscl-bot avatar Feb 17 '18 10:02 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Feb 11 '19 20:02 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Mar 09 '19 14:03 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Jul 19 '19 08:07 rhscl-bot

Can one of the admins verify this patch?

rhscl-automation avatar Sep 03 '20 08:09 rhscl-automation